move around something

wouterwouter Member Posts: 174
edited November -1 in Working with GS (Mac)
hi,
i have an actor (enemy). When it collides with a wall, how can i let him walk around the object (so move the shortest way around the object)... i thought just make the wall a circle (not rectangle) so it will always move, only it isn't that simple-.- (the enemy follows the player)

wouter

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    if im understanding correctly youll probably have to use waypoints, or a set of timers and interpolates on the collision for it to work.

    Orbz has a great waypoint demo,search for that in the creator
  • wouterwouter Member Posts: 174
    mmm maybe it's something i can use;) (i will give it a look) thanks!
  • wouterwouter Member Posts: 174
    i just have to make if collapse with wall then look if the character left or right is (x coordinates) and then move to direction... and that's it?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    it depends what you mean. To clear things up is this what your looking for?

    Your character walks forward and hits a wall, now he stops cause he cant walk threw the wall obviosuly. Instead of just standing there you want him to turn move up to where the wall ends then move pass the wall. So you want it to hit the object and move in a path around it basically right? If so then orbz waypoint demo is you best bet
  • wouterwouter Member Posts: 174
    yeah exactly what i want!

    (oh and move to direction is move to point of cource^^)

    thanks;)
  • wouterwouter Member Posts: 174
    mmm only how can i see what the current x and y position of the object is? (so left corner right corner etc...)
Sign In or Register to comment.