Want to bounce the actor

DookiDooki Member Posts: 247
edited November -1 in Working with GS (Mac)
Hey there,

Q: How to I make my actor bounce of the walls? Like a ping-pong ball that reduces the bounce over time?

I've been searching the forums on how to bounce and have found how to reduce the bounce. I have collide with "walls" on and I have "Restitution" set to 2.

Thanks!
-Dooki

Comments

  • JCFordJCFord Member Posts: 785
    Have a search through the GAMES section, there are many demos that you can download, a good one to start off with might be:
    http://gamesalad.com/game/play/28209

    Good luck
    JCFord
  • DookiDooki Member Posts: 247
    Thank JCFord.

    Looked at the game and yes this is the kind of bounce I am looking for. The game however is not a template that I can take a look at, and learn.
    Currently the actor (a ball) is shot from a sidewall cannon. Where the cannon points the balls goes straight until it collides with a wall. Once there is just jitters and shakes like a jumping bean at the collision point.

    - BTW I do not have a power ramp associated with the fire command. It's just set to press space bar and it fires. Not sure if this has an effect on bouncing.
    - Also, I have collide assigned to the ball and walls in my scene. Is this correct??
    Thanks!

    -Dooki
  • DookiDooki Member Posts: 247
    ...not sure what I am doing wrong. I have looked at several templates that have bounce, whether off a paddle or off a wall. They all show applying the collision attribute should do the trick! I really can't see what I am doing wrong here.

    -the ball that is shot has collision to tag items.
    - I shoot the ball and it just sticks to the wall upon collision.
    - If I rotate the cannon to create a bounce shot, the ball again just sticks to the initial wall collision point and does not bounce off the wall.
    - Do I need to adjust gravity? Restitution?

    Advice??

    -Dooki
  • KamazarKamazar Member Posts: 287
    Restitution would definitely need to be up. Friction will make a bit of difference. There's obviously collision going on. While I don't know what you're exact situation is, I'll try to help.

    Check to see if the wall also has restitution.
    Friction is normal, right?
    Try it with gravity on, and see if you get the same problem.
    Crank up the restitution...
    erm, don't know what else it could be. Any rules going on? Maybe screenshots showing the physical properties of the two actors?
  • DookiDooki Member Posts: 247
    UREKA!!!
    Thanks Kamazar. Yup, turns out I needed to fuss with restitution.
    OK, I don't see a attachment link so I can't send a screen crab. Here are my settings for the ball:

    - Density= 50
    - Friction= 30
    - Restitution= .7
    - Gravity= 120
    - I also have a "change velocity" with speed set to 500.

    I am now playing with the density/friction in order to effect the dampening of the bounce. Currently the bounces seem too constant. Am I on the right track for this? Thanks.

    -Dooki
  • DookiDooki Member Posts: 247
    OK, I now have the initial bounce that I am looking for. The problem I have now is once the ball has reduced it's bounce and is on the floor it does stop moving along the floor, and it looks like it has a little vibration up and down as it moves. Any help on this?

    Thanks!
    -Dooki
Sign In or Register to comment.