touch on scene and grow my actor to that point help please
Hi all
Can the following be done in GameSalad?
I have an actor on a scene, when you touch on the scene i want my actors width to grow to the point of my touch.
Quite tricky todo --help required
Many thanks
Dan
Can the following be done in GameSalad?
I have an actor on a scene, when you touch on the scene i want my actors width to grow to the point of my touch.
Quite tricky todo --help required
Many thanks
Dan
Answers
When touch is pressed:
Timer, every 0.1 sec
Change attribute: size X to "size X + 1"
Change attribute: size Y to "size Y + 1"
If you want to touch on the scene, and make every actor grow, you have to make additional attributes for each actor X and Y, and constrain X and Y of each actor to your attributes.
Change the numbers as you like.
Hope this helps!
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Make an integer attribute, let's say Blade - this is the blade length.
And second attribute - BladePos - this will change the blade position (for the grow effect).
Make a rule: when touch is pressed (or mouse button is down):
Timer, every 0.5 sec:
Change attribute game.Blade to "game.Blade+1"
And change attribute game.BladePos to"game.BladePos+1"
And in your blade actor you have to constrain actor Y size to game.Blade, and constrain actor Y position to game.BladePos.
Drop me your e-mail to themoonwalls@gmail.com I'll make you a template and send it in few minutes.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS