Hello for a school project i need to add a gyroscope to my ship.
My idea was to have a counter if a container from the left side was picked it changes the image.
This worked, but the problem is if i take a container front the right side (at least further front he mid point) it has to change back. not all but a little...
How can i do this?
I was thinking of a counter that start with 4 and if u pick from the left side it is decremented by 1. if u pick from the right side, added with 1 etc..
if the counter == 3 the gyroscope has a image with arrow pointing left, if it equals 5 it has 1 pointing right.. etc...
I want to do this in my Gyroscope class.
the Containers get picked by clicking it in the World (haven).