Question: Bounce and Move

AppsterAppster Member Posts: 112
edited November -1 in Working with GS (Mac)
Hey experts, may I know how to:
1) Make an actor to bounce on the same spot while hitting another actor? I set gravity 100. Now everytime the actor 1 drop onto Actor 2, it always move left slightly and start to bounce off.

2) How to make the actor to "move towards" the direction of my mouse or touch? I have tried the combination of Mouse Press or Position but can't seem to work

Appreciate your advice on this.

Comments

  • AppsterAppster Member Posts: 112
    appster said:
    Hey experts, may I know how to:
    1) Make an actor to bounce on the same spot while hitting another actor? I set gravity 100. Now everytime the actor 1 drop onto Actor 2, it always move left slightly and start to bounce off.

    2) How to make the actor to "move towards" the direction of my mouse or touch? I have tried the combination of Mouse Press or Position but can't seem to work

    Appreciate your advice on this.

  • AppsterAppster Member Posts: 112
    Hey all. I managed to solve the bouncing on the same spot and same height. Now I wan to be able to stop the ball when I touch/click and throw in the direction it is released. Appreciate some help on this. Many thanks.
  • AppsterAppster Member Posts: 112
    Bump..
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    First constrain self.motion.x = 0
    If you want the ball to stop moving, there are many ways to skin that cat.

    Try creating a boolean game.attribute

    First off. i would hesitate using gravity. instead use a downward acceleration behavior that only works is STOP is false

    Create new rule:
    When actor is pressed
    IF game.STOP is false

    Change attribute game.STOP to true

    Otherwise
    change attribute game.STOP to false
Sign In or Register to comment.