Collide Question
bluebyu25
Member Posts: 500
I have two wall actors (right wall and left wall on either side of the screen) and both have moveable unchecked. My game is landscape orientation. I have a ball actor falling from the top of the screen with a collide behavior that says to bounce off of right/left wall when they collide.
The Problem: The effect I am trying to achieve is that when the ball collides with the walls, it bounces off in the other direction with the same movement speed it had before it collided. As of now, it just hugs whichever wall it collides with and dribbles down to the bottom of the screen.
Any help is much appreciated!!
The Problem: The effect I am trying to achieve is that when the ball collides with the walls, it bounces off in the other direction with the same movement speed it had before it collided. As of now, it just hugs whichever wall it collides with and dribbles down to the bottom of the screen.
Any help is much appreciated!!
Comments
Darren.
Darren.
Tap1 is the name of the ball actor by the way.
Here is what I did:
Create New Rule: Actor receives event>overlaps or collides with> with actor of type>right wall
Ditto for the left wall.
Then in the grey area where you drop behaviors I did:
Change attribute: self>motion>linear>x TO -self>motion>linear>x
Is "linear" the same thing as "linear velocity" bc all I have showing up after motion is: linear, angular velocity, max speed, and apply max speed.