Hello, I have a sprite that has 6 sub images. I am trying to get it so the when the mouse hovers over a button that it displays the images 0-6. I was just using 1 sub image and that was easy to get working i used the following code:
in mouse enter event:
image_index = 1;
and in the mouse leave event:
image__index = 0;
That would make it so my image would change from image 0 to 1 when hovering over the button. I decided to make 5 more sub images and tried to use the following:
in mouse enter event:
image_index = 6;
which would in turn change from image 0 to 6 without going through 0 to 6. I am trying to make it so it shows image 0,1,2,3,4,5,6 when hovering over the image.
Please help, thank you in advance.
in mouse enter event:
image_index = 1;
and in the mouse leave event:
image__index = 0;
That would make it so my image would change from image 0 to 1 when hovering over the button. I decided to make 5 more sub images and tried to use the following:
in mouse enter event:
image_index = 6;
which would in turn change from image 0 to 6 without going through 0 to 6. I am trying to make it so it shows image 0,1,2,3,4,5,6 when hovering over the image.
Please help, thank you in advance.