Cycle through question...
Is this correct? I can't remember.
I have 4 images. I want the player to tap on the image to go to the 2nd image, tap again they go to the 3rd image and then 4th image.
So....
When touch is pressed: Change Attribute Which Image to (Which Image+1)%4
THen a rule that corresponds the Which Image number to the correct picture. But that's right, right?
I have 4 images. I want the player to tap on the image to go to the 2nd image, tap again they go to the 3rd image and then 4th image.
So....
When touch is pressed: Change Attribute Which Image to (Which Image+1)%4
THen a rule that corresponds the Which Image number to the correct picture. But that's right, right?
Comments
Then create some rules:
If ImageNo=1
Change Image...
If ImageNo=2
Change Image...
ect
You will need to use the Change Image behaviour.
Hope this helps.
change attribute self.image to "pic"..self.whichImage..".png"
to do the actual image switching