Z
ZombieTom
Guest
I have a sprite, spr_tile_hillSlope_downUp. The sprite has three frames.
In the code, the sprite is created using:
In the game, the sprite is created fine but it automatically starts animating through it's three frames.
Is it possible to create the sprite so it does not animate - ie. it stays at image_index 0 until manually changed to image index 1 and so on? I can get round this issue simply by using a seperate sprite though it would be nice if I could keep all sprite "sub-images" in one sprite resource.
In the code, the sprite is created using:
Code:
layer_sprite_create(layer1Obstacles, tile_x, tile_y-(sprite_get_height(spr_tile_obs_wall)-global.tileHeight), spr_tile_hillSlope_downUp);
Is it possible to create the sprite so it does not animate - ie. it stays at image_index 0 until manually changed to image index 1 and so on? I can get round this issue simply by using a seperate sprite though it would be nice if I could keep all sprite "sub-images" in one sprite resource.