J
Joshua Hotchin
Guest
Hey guys,
So I have a sprite with 10 images, all different coloured cursors.
Here is my code:
The idea is that every time a room is started the cursor is a random colour. At the moment the cursor keeps changing colours as if animated for the cursor is enabled.
The code is in a "oGame" object which controls the game and is inside the "Room Start" event. You can see here that I have set the image_speed to 0 and also in my sprite the image speed is 0.
Someone please help, it is probably something really simple that I mussed.
So I have a sprite with 10 images, all different coloured cursors.
Here is my code:
Code:
if (room != rMenu) and (room != rControls) and (room != rUpdatesAndNotes) and (room != rShop) and (room != rEnding) and (room != rCredits)
{
cursor_sprite = sCursorGun;
}
else
{
cursor_sprite = sCursor;
with (sCursor)
{
image_speed = 0;
image_index = (choose(0,1,2,3,4,5,6,7,8,9));
}
}
The code is in a "oGame" object which controls the game and is inside the "Room Start" event. You can see here that I have set the image_speed to 0 and also in my sprite the image speed is 0.
Someone please help, it is probably something really simple that I mussed.