Actor Detection Issue

kajutokajuto Member Posts: 314
edited March 2012 in Miscellaneous
Hi there! i made a actor recently that move forward and backward and that actor also display the distance when Hero actor is close, but i used Magnitude like in the tutorial of T-shirtbooth but it move Y axis also, i just one to move X axis. For example the actor that move side by side when he detect the hero actor just follow him in the floor, not also in the air like flying of some sort..help with that...thanks in advance

Answers

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You need to constrain the y axis to where you want it. Use constrain attribute self.position y to position you want.
  • kajutokajuto Member Posts: 314
    but either i don't want the the actor that move side by side i have to constraint the Y axis?

    i just want him move side by side in the x axis where the hero will walk
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    It sounds like your actor needs to not follow the hero in the y axis.

    Im not sure thats what your shooting for but if it is you need to remove what ever is tracking the heros y position from the rules.
  • kajutokajuto Member Posts: 314
    Exactly tenrdrmer.! I don't want the actor follow the hero y axis just only the x axis :-) how should I do that ?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Set the "follow" actor's y to whatever you want (e.g. where your ground is). Then constrain the "follow" actor's x to the hero's x. If that doesn't make sense, please post your rules and we can see what you're trying to do.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited March 2012
    Hmmmmm am I missing something or is that what I said..LOL
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited March 2012
    Hmmmmm am I missing something or is that what I said..LOL

    It was what you said. I thought kajuto might need to hear it again. :P Actually, now that I re-read it, I think you said to constrain the y value and I said to constrain the x value.
Sign In or Register to comment.