Player Movement In A Circular Motion ?.
jackyjoy123
Member Posts: 7
Hello,
I'm working on an endless runner where I'm having the player actor rotate in a circular motion about an actor using constrained x and y values. This worked successfully in order to achieve the endless movement I'm looking for but now I'm wondering how I can move the player up and down in order to dodge obstacles, because with the x and y values constrained the move behavior doesn't seem to work any longer no matter the speed it is at.
I don't mind if I have to recreate it from the ground up but I essentially want to achieve a circular endless runner where the player moves the actor up and down to avoid obstacles while it's moving on this circular track, how would I achieve this?
thanks
jackyjoy
Comments
What is the expression you are using for the circle movement?
If you are using :
constrain actorX -to- 200*cos(angle)+Xposition
constrain actorY -to- 200*sin(angle)+Yposition
you can try constrain "Xposition" -to- mouseX or another actorX and use move behavior on that actor.
gasp! there’s a surprise. a new member asks a question, then comes back with “thanks it’s been resolved” and a bunch of spam.
Yeah I thought Toys 'R Us went bust years ago...