Rotate actor while following touch and...
DaddyMagic
Member Posts: 34
I can't figure out my simple flying bug game:
- When the bug follows my finger (touch) I want it to rotate in the direction moving.
- When I touch other actors such as the flower (animate) I do not want the bug to move anymore.
Can anyone help? Thanks
Comments
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°.
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