Change X speed after bouncing but keep mementum

colocoquillocolocoquillo Member Posts: 2
edited January 2012 in Working with GS (Mac)
Hello my Name is Andres, im new in the forum, but not new on the GS proyect. I got my game near to the end of it but i need help with my last "algorithm":

The problem i’m having is related to ‘gravity’(even if im not using gravity, im just using acceleration to imitate gravity).

When actor 1 hits actor 2 top-down, it bounces up and down off actor 2 fine, but when actor 1 hits actor 2 at an angle the arc it makes when it bounces is far too long.

I want to be able to control actor 1 when it’s moving across its arc so that I can make it drop downwards suddenly yet keep its momentum so it bounces again when it hits actor 2 top-down again.

Can anyone suggest how I can control actor 1 in its arc and make it drop down in a line quickly. I have thought about using an invisible ‘actor 3’ so that it collides and drops down in a straigh line to bounce again on actor 2 straight up NOT FORWARD, but I’m not sure that this is the best way or how to change the X accelertion of actor 2 = 0 when it touch this actor 3.

Comments

  • colocoquillocolocoquillo Member Posts: 2
    Really?? Is it that difficult what i' m trying? Please any suggestion will be good i will try anything!!
Sign In or Register to comment.