• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Objects

B

Ben McLauchlan

Guest
I have an object with lots of costumes that rotate every 1 second, I don't want this. I want a piece of code that when key a is pressed (or something like that) it changes costume. So it doesn't rotate every 1 second
 
A

Alex_Beach

Guest
in the create event write: image_speed=0;
-this pauses the switching of images

on a key press event, write: image_index++;
-this will go to the next image on a key press
 
B

Ben McLauchlan

Guest
This is the code, but still nope

image_speed=0;

if(mouse_x >= 762 && mouse_y >= 520 && mouse_x < 923 + sprite_width && mouse_y < 620 + sprite_height)
{
image_speed=1 * 1000;
image_speed=0;
}
 
Top