How to stop revolving on collision?
gyroscope
I am here.Member, Sous Chef, PRO Posts: 6,598
Hi, i've started on my iPhone project in earnest now; I have utilized some of Tshirtbooth's excellent Joystick Control demo:
http://gamesalad.com/game/play/22929
In particular, Game1Control scene.
When touch is released from the green stick, it returns to the centre, but the player also returns to 0 rotation. I solved this by adding to the Otherwise section of a Change Attribute: game.Angle to game.finished Angle.
That seemed to work fine; when touch is released, the player stays put. But now, if it collides with something, a wall, for instance, it starts revolving.
If anyone could help here, that'd be terrific. I'd upload my work-in-progress if you wanted, to see what's going on.
http://gamesalad.com/game/play/22929
In particular, Game1Control scene.
When touch is released from the green stick, it returns to the centre, but the player also returns to 0 rotation. I solved this by adding to the Otherwise section of a Change Attribute: game.Angle to game.finished Angle.
That seemed to work fine; when touch is released, the player stays put. But now, if it collides with something, a wall, for instance, it starts revolving.
If anyone could help here, that'd be terrific. I'd upload my work-in-progress if you wanted, to see what's going on.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps