Touch help

EjjEjj Member Posts: 18
Hi, I was wondering how to make an actor spawn in an iPhone game where the screen is touched. I'm very new to game salad and any help will be appreciated.

Comments

  • azavegaazavega Member Posts: 362
    Never did it before but I guess if you assign the position x and y of the touch to a game attribute or variable then you spawn the actor on those values x and y...
  • MotherHooseMotherHoose Member Posts: 2,456
    Hi @Ejj!

    make an actor that is as large as the screen ... in its Attributes change Color>Alpha to 0 so it is invisible

    put a Rule on that Actor...
    when
    Touch is pressed
    ---
    Spawn Actor# [in front of is fine]
    Direction [0] Relative to: [Scene] --this is the important part!
    Position: ->(expression: Device) game.Touches.Touch1.X ^ (expression: Device) game.Touches.Touch1.Y
    .....Relative to: [Scene]

    that looks more complicated than the couple of clicks it takes to put in! you don't have to type it!

    MH
  • EjjEjj Member Posts: 18
    Alright, I've gotten it to work, thank you very much!
Sign In or Register to comment.