# Rotate actor while following touch and...

Member Posts: 34
edited June 2017

I can't figure out my simple flying bug game:

1. When the bug follows my finger (touch) I want it to rotate in the direction moving.
2. When I touch other actors such as the flower (animate) I do not want the bug to move anymore.

Can anyone help? Thanks

• London, UK.Member Posts: 12,822
edited July 2017

When the bug follows my finger (touch) I want it to rotate in the direction moving.

In maths 0° is set at the '3 o'clock' position on a clock, that is to say on a compass 0° is due East.

Your problem is that you are importing a character into GameSalad that is facing upwards, which is 90° in maths, therefore all your calculations need to take this into account.

If you want life it be easy in GameSalad (and in maths) then you should orient your moving characters so they face 0°.

• Member Posts: 34
edited July 2017

Yes I figured this out after watching this youtube tutorial:

Two.E has helped me on this and I have learned alot however I'm still thinking through how to make this simple game a bit better, Thanks