TOuch x2 to change action Help
kajuto
Member Posts: 314
hi there@!! recently I'm making a button when touch is pressed spawn 3 actor, But i want when touch is pressed 2nd time goes back to the button position.
Button code:
Rule: touch is pressed
1)spawn actor#1 *back of the actor
2)spawn actor#2 *back of the actor
3)spawn actor#3 *back of the actor
Spawn Actor code:
1) move to x=187 & y=220 relative to scene, speed 500
touch 2nd time the button, move to x=188 & y=44 relative to scene, speed 500 (that position is where the button is).
2) move to x= 187 & y=156 relative to scene, speed 500
touch 2nd time the button, move to x=187 & y=44 relative to scene, speed 500 (that position is where the button is).
3) move to x= 187 & y=92 relative to scene, speed 500
touch 2nd time the button, move to x=187 & y=44 relative to scene, speed 500 (that position is where the button is).
what i want is when touch is pressed 2nd time goes back to the button position, NOT when i keep touching it keeps coming out infinite time when i pressed because it keep respawning...
Thanks in advance!!
Button code:
Rule: touch is pressed
1)spawn actor#1 *back of the actor
2)spawn actor#2 *back of the actor
3)spawn actor#3 *back of the actor
Spawn Actor code:
1) move to x=187 & y=220 relative to scene, speed 500
touch 2nd time the button, move to x=188 & y=44 relative to scene, speed 500 (that position is where the button is).
2) move to x= 187 & y=156 relative to scene, speed 500
touch 2nd time the button, move to x=187 & y=44 relative to scene, speed 500 (that position is where the button is).
3) move to x= 187 & y=92 relative to scene, speed 500
touch 2nd time the button, move to x=187 & y=44 relative to scene, speed 500 (that position is where the button is).
what i want is when touch is pressed 2nd time goes back to the button position, NOT when i keep touching it keeps coming out infinite time when i pressed because it keep respawning...
Thanks in advance!!