detect actor facing touch

RocketBrainRocketBrain Member, PRO Posts: 269
edited November -1 in Working with GS (Mac)
i've been spending the last couple hours trying to figure out how to do it. i know its possible, i just cant figure it out.

basically i want the actor to turn to face a spot thats touched (thats was easy), but once it faces that point it does the next step.

so actor points up. touch right. actor turns to face that spot, and then moves towards it.

Comments

  • RocketBrainRocketBrain Member, PRO Posts: 269
    ?
  • AjBlueAjBlue Member Posts: 215
    wait so you want your actor to move to the spot that is touched? if you want to do that all you do is put in the touched rule. interpolate(or whatever movement behavior you want i guess) (actorx,actory) to (device>mouse>position>x, device>mouse>position>y).

    i don't know if thats what you wanted to know, if it isn't can you try to make what you want to do clearer
  • RocketBrainRocketBrain Member, PRO Posts: 269
    no no. i want to know how to detect that the actor has faced the spot it touched.

    i can get the actor to turn and face.

    i can get the actor to move to touch.

    i cant get it to turn to face....and THEN move to the spot.
  • RocketBrainRocketBrain Member, PRO Posts: 269
    or have it turn to face and THEN do anything. how can i get it to detect that it successfully faced another actor or touch?
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    looking for this same answer myself, hope someone can explain. cos my actor only face the direction and then keep rotating away.
Sign In or Register to comment.