Stop Actor

youngster9youngster9 Member Posts: 326
edited November -1 in Working with GS (Mac)
In my game when I click a button an actor starts moving. But when I click the reset button it resets all the positions but the object continues to move. How do I stop the object from moving?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I'm assuming you are using a Boolean attribute to trigger when the scene resets. in your moving actor you need to also reset the actors LinearVelocity.x and LinearVelocity.y back to 0 also
  • youngster9youngster9 Member Posts: 326
    I set the x and y linear velocity to 0 after the reset boolean became true. But the ball continues to move after the reset

    HELP!!!!!!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    youngster9 said:
    I set the x and y linear velocity to 0 after the reset boolean became true. But the ball continues to move after the reset

    HELP!!!!!!

    take a screenshot of your rules
  • youngster9youngster9 Member Posts: 326
    I'm new so I have no idea how to comment a picture
  • calvin9403calvin9403 Member Posts: 3,186
    shift command 4

    maybe you can try turn moveable off
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    take your screenshot. Upload to tiny pic.com it will give you a link for forums and message boards. Copy that link

    type<img src="URL of Image" /

    except put a > at the end of the line above this

    and replace "url of Image" with the link you copyed
  • youngster9youngster9 Member Posts: 326
    tried that it didn't work it still moves a little bit

    how do I attach picture to comments like this one
  • youngster9youngster9 Member Posts: 326
    here is the rules

    Image and video hosting by TinyPic
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    take out the rule that changes movable to false, and take out the rule tthat cahnges max speed to 0.

    See if it works with those removed. It should work
  • youngster9youngster9 Member Posts: 326
    no it didn't work
    when I had those things it at least slowed the drop a lot but then it would't speed up after that.

    After I fix this glitch I have a pretty fun game made.

    To me at least :D
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    youngster9 said:
    no it didn't work
    when I had those things it at least slowed the drop a lot but then it would't speed up after that.

    After I fix this glitch I have a pretty fun game made.

    To me at least :D

    you can take your graphics out and send me the project and ill take a look at it if youd like
  • youngster9youngster9 Member Posts: 326
    sure how should I send it
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    zip it up and email it to me

    papiomitis at yahoo dot com
  • youngster9youngster9 Member Posts: 326
    sent it

    thanks
    :D
  • youngster9youngster9 Member Posts: 326
    When do you think you will finish?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    youngster9 said:
    When do you think you will finish?

    i emailed you back. You forgot to attach the project with the email. Compress the game project and attach in the email
  • youngster9youngster9 Member Posts: 326
    sorry about that. I wasn't thinking
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    i sent you back the fixed game. THe movement rules were trigger by the game start attribute so when you press reset you need to change that back to false as well. Then when you press start again it turns game start back to true.
  • youngster9youngster9 Member Posts: 326
    thanks a lot John now that I have fixed this I will be able to finish my app soon

    I will be posting a video on gameplay soon

    Again thanks everyone
Sign In or Register to comment.