How does the iPhone's touch-screen work in terms of game control?

MotiondiveMotiondive Member Posts: 5
Hi, I want to create a game in which users can chase an object on the screen and when they "touch" it the object disappears or explodes. Is that possible to do with Game Salad?

m

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Hi Motiondive.

    The object that you want to explode or disappear:

    Colliding with another actor....
    1. Give it a rule- When Receives event -> Collides with -> Other Actor
    2. Within that rule add the behaviors to tell it what to do. For Example:
    -> Destroy Behavior to destroy this actor
    -> Particles behavior to do an explosion
    -> Animate Behavior to do some animated explosions
    -> Change Attribute (Color->Alpha) To make it disappear.
    -> ... etc.

    Colliding with the mouse...
    1. Instead of the Collides condition for the rule, use Mouse Position -> is Over Actor.
  • MotiondiveMotiondive Member Posts: 5
    Hi,

    "Colliding with the mouse..." meaning the "touch" action on the screen by your finger?
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    the mouse position is mapped to where you are touching the screen. So the question is, the way you are designing you game, are you controlling an actor by moving it left/right/up/down to chase an object, or are you wanting to just use your finger to chase an object?

    if the latter, then use the second condition I had posted.
  • MotiondiveMotiondive Member Posts: 5
    Yes, I just want users to use their finger to chase/tap the object. Thanks for your answer!

    m
Sign In or Register to comment.