Tilt left motoX

macewanmacewan Member Posts: 214
edited April 2012 in Working with GS (Mac)
In working with motoX I want the user to have the option of tilting the game instead of having to use the arrow button. Would I do this in the button or on the cycle?

http://goo.gl/DDxVe <- screenshot

Best Answer

  • tatiangtatiang Posts: 11,949
    edited April 2012 Accepted Answer
    You would do that on the button, but you're going to find it works a lot better to use > or >= an accelerometer value. In your screenshot, it looks like you have the condition equal to 0.01. It's hard to hit exactly 0.01 with a tilt device.

    Sorry, actually since you're toggling a boolean it really doesn't matter where you have that rule. It just needs to be on any actor on the scene. But I would have it in the button since you're coding the button for keyboard control and touch is inside.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

  • macewanmacewan Member Posts: 214
    thanks :-)
  • macewanmacewan Member Posts: 214
    Interesting that setting it to Y works better than using X. More confusing and certainly not doing for normal game play. Perhaps I need to test this on the motorcycle instead and bypass the buttons.
Sign In or Register to comment.