I want to make a sprite in game maker that contains 5 sub images to stop when it reaches the last one how can I do this using code?
相关问题
- GameMaker Studio 2 collaboration between windows a
- Sending whole folder content to client with expres
- Conflicting KML xmlns attribute from KML to XSLT
- How to make water pour in GML?
- How to use gml or shp files on Google Maps api v3?
相关文章
- GameMaker Studio 2 collaboration between windows a
- Sending whole folder content to client with expres
- Networkx解析GML写不可用GML文件(Networkx parse gml writing
- Conflicting KML xmlns attribute from KML to XSLT
- How to make water pour in GML?
- 的UnicodeDecodeError写入文件(UnicodeDecodeError for wri
- How to use gml or shp files on Google Maps api v3?
- Networkx parse gml writing unusable gml files
In
Animation End
event:Run this in the Step even of your object:
image_index
is the index of the current frame in the object's sprite's animation,image_speed
is the speed of the animation (in frames per step). This code just checks if the animation is at the final frame (the frames are 0-indexed, so the 5th frame is index 4.), and if so sets the speed to0
.