<ins> <b>**Touch Pong Template????**<b> <ins>
LeonardDeveloper
Member Posts: 4,630
Dear All,
I know how to get an actor to follow your finger (Touch) But i can't quite think of a way, to get a two player pong with touch,
Does anyone have a template for two player pong (Touch) Or has anyone seen any templates like that?
Any help is much appreciated,
Thank you ever so greatly
I know how to get an actor to follow your finger (Touch) But i can't quite think of a way, to get a two player pong with touch,
Does anyone have a template for two player pong (Touch) Or has anyone seen any templates like that?
Any help is much appreciated,
Thank you ever so greatly
Comments
Now , a rule in your actor :
When touch is pressed -
Change "self.my touch number" to touch.count (storing what touch number is pressed)
otherwise :
Change "self.my touch number" to 0 (resetting)
Then have 2 rules :
When "self.my touch number" = 1
Constrain to touch 1
When "self.my touch number" = 2
Constrain to touch 2
Hope it will help you start
Roy.
Thanks roy!,
Will that work well for two player?....... I can see it obviously works, but what if both players don't had ether finger on it for all the game? :-t (HEHE )
Sorry, Im using this on iPhone and on my iPhone its on the second page...
Thanks TSB! Great template!
Have you finished? I would be interested to see what you have achieve! :-)