Hello everyone i am trying to make my wheel stop at a particular angle, preferably when the green box stops at the pink bar sprite but it isn't working out can anyone help please. here is my capx dropbox.com/s/n9b7u44vpzq21zf/wheel.capx
You mean you want to limit rotation? See this example:
dropbox.com/s/tptx0gjlyh1t1vu/steeringWheel.capx
Thank you very much...and it's easier too it's what i wanted. But Sir i tried copying the project and implementing it to a new one but for some reason the wheel is not spinning no more
Maybe because I rotated the image inside of the sprite, and the sprite itself on the layout by 90 degrees.
Develop games in your browser. Powerful, performant & highly capable.
Also, check out this demo:
dropbox.com/s/gk1w7g9njs5gwj7/RotatingKnob.capx
You can limit rotation angle with instance variables.
Thank you, i figured out that it was wrong layer naming that caused it not to work..and also thank you for the capx it was very useful