touch specific point on actor?

eden111eden111 Member Posts: 25
edited November -1 in Working with GS (Mac)
is it possible to do with gamesalad that if i touch a specific point on my actor another actor will spawn?

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    It is possible.

    Let's break this down:
    1. touching your actor => if actor receives event touch is pressed
    2. specific point => find the position of the touch within some range
    ----Attribute game.mouse.position.X > ?
    ----Attribute game.mouse.position.X < ?
    ----Attribute game.mouse.position.Y > ?
    ----Attribute game.mouse.position.Y < ?

    It is no where efficient if you are wanting to check with multitouch device attributes, but yes it is possible.

    You could also have additional actors to be those specific touch sensitive areas of your actor and set up some game attributes signifying which area was touched.

    If you could define what you want the specific point touch on an actor to accomplish, I could give you a better answer.
Sign In or Register to comment.