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