#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# Rotate actor while following touch and...

Posts: 34Member
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.Posts: 12,820Member
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°.

• Posts: 34Member
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