How to make an image keep on changing when touched!
BIG_THINKIN_APPS
Member Posts: 944
Hello,
I am working on an app but I can not figure out how to make an image to keep on changing every time touched. Here is a short video to help. I just want to be able to see the image I selected to take the place of the one up, if that makes sense. So when image is touched a new one will come up and when that one is touch a new one will come up.
I hope this makes sense!
Thanks
Conner
I am working on an app but I can not figure out how to make an image to keep on changing every time touched. Here is a short video to help. I just want to be able to see the image I selected to take the place of the one up, if that makes sense. So when image is touched a new one will come up and when that one is touch a new one will come up.
I hope this makes sense!
Thanks
Conner
Comments
Make an integer attribute called game.imageNum and set it to 1.
Have a rule that says When Touch is Pressed Change attribute game.imageNum to game.imageNum+1
Then have a behavior to Constrain Attribute self.Image to "ship."..game.imageNum
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I will try to figure this out. Do you know if there is a video on this because they are very helpful to me. Also will this be hard to do with 20+ actors that will do the same on different scenes.
There may be videos related to this... custom font, for example, but I recommend just trying what I posted first. The videos may confuse you more since they are more advanced than what you are asking.
It's not hard at all, even with dozens of actors.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks for helping me with this all!!!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I am just not very good with anything besides the very very basics of GameSalad.
If you could help please tell me as soon as possible.
I really think that I am messing everything up....
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Enjoy.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
I figured out how to do it now! But for some reason after it goes through all the image it makes a white box the same size instead of starting over again. Any ideas!
In the demo posted by @Braydon_SFX he uses '%10' to cycle/loop through 10 images.
Thanks for that it now goes through them, but still has the white block when going through! If you know what I mean. (:
I am very grateful for everyone's help on this!!!! (:
Conner