<ins> <b>**Touch Pong Template????**<b> <ins>

LeonardDeveloperLeonardDeveloper Member Posts: 4,630
edited January 2012 in Working with GS (Mac)
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

Comments

  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    Bump?? Does anyone have a template or does anyone know how to accomplish this?
  • POMPOM Member Posts: 2,599
    The simplest way is to create self attribute in your actor - integer - call it "my touch number"
    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
    :D
    Roy.
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    @p-o-m
    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 :) )
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    @tshirtbooth
    Sorry, Im using this on iPhone and on my iPhone its on the second page...
    Thanks TSB! :) Great template! :)
  • @tshirtbooth you rock mate! Finally got my acceleration throttle working form this template!
  • Fredrik BixoFredrik Bixo Member Posts: 239
    @Leonarddeveloper, Are you making a ping pong game? Thats actually what I'm doing right now :)
  • stefdelecstefdelec Member, PRO Posts: 146

    Have you finished? I would be interested to see what you have achieve! :-)

Sign In or Register to comment.