I sort of fixed it. I used to have it as if Mouse Button is down, but I changed it to Touch is Pressed (Genius right?) With this new way, when the joystick is in a 480 x 320 scene with nothing in it, it works fine, the only way to get it to work is by actually touching the thumb button. But when I put it into a scene of my actual game, I can only get it to move once or twice, then once I release it, it never moves again. Suggestions?
Alright fooling with some things here. It's no longer a problem with the Joystick but the player actor. (Sort of) On the joystick I have this: Rule: Change Game.MovingRight to True { if Game.DistanceFromCenter is greater than 10 if Game.Angle is greater than -30 if Game.Angle is smaller than 60
Change attribute, Moving Right to True --Otherwise Moving Right is false } This works, but only one time. After it works the first time, moving the Joystick around no longer does anything to control the character. What should I do to use this properly? The game is a side scroller so the character can only move left and right.
Ok really weird. I made a 480x320 scene. Made an actor that says when Moving right is True, turn red, otherwise turn regular color. I noticed this when using the character as a test but... For some reason the joystick only works for a couple of seconds. Once, the game starts if I wait too long before touching the joystick, then touch it, nothing happens. And when I touch it at the start of the game, after about 2 seconds, Game.MovingRight goes back to 0. Or so I'm guessing. Because after those 2 seconds, the little red block goes back to it's regular color (White). Why is this?
Comments
Rule: Change Game.MovingRight to True
{
if Game.DistanceFromCenter is greater than 10
if Game.Angle is greater than -30
if Game.Angle is smaller than 60
Change attribute, Moving Right to True
--Otherwise
Moving Right is false
}
This works, but only one time. After it works the first time, moving the Joystick around no longer does anything to control the character. What should I do to use this properly? The game is a side scroller so the character can only move left and right.