I try to figure it out how to rotate angle of an object let's say from 90 degree to 180 degree and than come back and start over.
I don't want using sine behaviour for this.
I tried rotate toward angle and than added two different values but it's always rotate to the last action and stop there.
Any ideas how to loop?
I hope I understood your question correctly
You can add an instance boolean variable, and toggle it every time when its angle is 90 or 180. And then add 2 conditions. If boolean is set, then rotate toward 180, otherwise - toward 90.
Develop games in your browser. Powerful, performant & highly capable.
Wow, Yeah i guess it solved the problem :)
Thank you
You could also use Tween behavior, and reach the same result using only one action.
Thank you.
I'll try it as well. Good to know few techniques.
> You could also use Tween behavior, and reach the same result using only one action. > > > Thank you. I'll try it as well. Good to know few techniques.
> You could also use Tween behavior, and reach the same result using only one action.
>
As i understand, In this technique you have limited options to set exact Degrees you want to set. Not sure about how the start and end values works as they came with seperate values without the loop/ping pong options.
this is a simple solution to the problem you described. the start value is determined by the current angle value.