Problems with resetting actor

nashmusicnashmusic Member Posts: 3
edited November -1 in Working with GS (Mac)
Hi all! This is my first post, since I am working with my first game. So I followed a tutorial about building ball game that destroys coins and I am trying to take it to the next level. The thing is that when I added a time limit and after "time is up" i want to reset the game, however, the actor (ball) is rotating and is moving for no reason in the position i established it should appear. As in the tutorial. I have it with 0 density, 0 friction and 1 restitution. And I have tried to establish change velocity to 0, nothing, rotation to 0, nothing, Constrain Attribute Move linear X to 0, nothing, Constrain Attribute Linear Y to 0, nothing. I just want that on each level, the ball stops moving and in the original position as in the start. Am i clear on this?

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Welcome! Try constrain self.rotation to 0 & constrain self.position.x to self.position.x and the same for Y. Did that work? Also, if instead of using the rotate behavior you are playing an animation then the self.rotation to 0 wont work. Just make a boolean called rotate? When true, animate

    Matt :D
Sign In or Register to comment.