iphone movement button...

CLAYCLAY Member Posts: 72
edited November -1 in Working with GS (Mac)
Hi sorry for the trouble

i tried to mimic codemonkey bit i can't make it work. I made a clickable button. i want the character to move in that direction for as long as the button is held down but the character doesn't ever stop once the bouton is held.

also how to make a clikable button for the iphone ? I did one but it jumps really wierd (he doesn't jump very high even after a speed <450> .. is it because of the change velocity behavior ?

those are the screen shots of all my rules :

http://img11.imageshack.us/img11/4944/image4fi.png
http://img697.imageshack.us/img697/2494/image5qd.png
http://img695.imageshack.us/img695/8888/image6wj.png
http://img638.imageshack.us/img638/6518/image7g.png
http://img189.imageshack.us/img189/5445/image8tz.png
http://img511.imageshack.us/img511/5562/image9j.png
http://img169.imageshack.us/img169/1223/image10n.png
http://img205.imageshack.us/img205/4415/image11s.png

Comments

  • CLAYCLAY Member Posts: 72
    anyone ... is my first post is clear enough ?
  • CLAYCLAY Member Posts: 72
    It's been a day now that I'm trying to solve this problem with the support' here but I can't find it ... Do you guys really have no idea ?
  • jweaver911jweaver911 Member Posts: 439
    Hi Clay,
    I'm new here, so I may be wrong... But it looks like your button needs the false condition to be added as well. If you don't tell the button that it needs to stop moving your character upon letting go of the button, he should just keep running.

    The logic would be that it just said "GO!" when you press the button, and told your little man to start running but didn't specify a condition when to stop.

    EDIT: I realize that this is only referring to your first problem. Sorry :) That's all I got right now.
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Hey, Im on my mobile right now, so I can't look at your pictures, but here's what I would recommend you to do...

    Create a move attribute (set it at 0)and make it so when you click your button that makes it move change the move attribute to 1 (then create a rule to check when the attribute = 1, (insert your move function here))

    Then make a rule that says when the button is released change the move attribute to 0 bam your done:) I hope this helps!
  • CLAYCLAY Member Posts: 72
    THANKS GUYS YOUR ALL GREAT I'll make sure the next time i'll help other people too
Sign In or Register to comment.