The Code plays an Attack Animation (Sequence) if the cooldown timer hits 0 and "Q" is pressed. The problem is, that I dont know how to delete the sequence after it has finished its animation of 12 Frames. If I use "Layer_destroy_sequence(seq)" right after playing it, it gets deleted before the 12 Frames are played. If I do not destroy it, the game starts lagging after just a few sequence plays. If I try to destroy it at the beginning of the script, I get an error message, saying, that it cannot destroy a sequence that doesnt exist.

Destroy Sequence after being played in Game Maker
25 Views Asked by RetroAnt At
1
There are 1 best solutions below
Related Questions in SEQUENCE
- How to find out how many of each 2, 3 and 4 required to fit in 100 using excel?
- Sequences - Find the next term in the sequence
- Direct boot from USB without changing BIOS setting or selecting from boot manager
- How do I shuffle these blocks and make a win/loss game-state?
- Triggering Actions in a sequence Python Reaper
- How inaccurate is QueryResult's underestimatedCount?
- How can I expand six days beyond each date in a list of arbitrary dates?
- Channel importance in sequence classification
- Pyspark Cummularive Sum Window Date and Sequence Number
- Running tests on both parallel and sequence mode using groups and dependsOnGroups attribute
- Displaying the number from the sequence by using the sequence ID
- What are the types of arrays with variable size and accommodating different types in Nim?
- Generating a pseudorandom binary sequence where the same number does not occur more than twice in a row
- Generate all combinations of array of arrays
- Coupon collector’s test (for testing sequences)
Related Questions in GAME-MAKER
- GUI will only Work for Newest Towers and I Don't Know Why. (Gamemaker)
- Destroy Sequence after being played in Game Maker
- Variable isnt properly checked in if statement
- Transparent Window with Clickthrough and on Top
- Sprite_index is not set
- I want to create a One-Way platform in GameMaker, how?
- How can I alternate between three points with the camera?
- Fisheye effect in GameMaker Ray Casting
- How can I make it where I automatically move in a certain direction (Purpose is for wall jump)
- game maker modifying windy woods game
- How can i make text showing up after some period of time?
- Falling animation plays throughout the whole jump?
- Gamemaker - Retain Overlapping with collision
- Gamemaker not able to connect on port when running Debugging Mode
- Implementation of Dijkstra algorithm in GameMaker studio
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I fixed the issue myself by:
removing the temporary var seq and using a variable thats created with the Object itself
Have the attack_animation be declared a value when the conditions are met:
Have the attack animation deleted as soon as its time of 12 frames ends using