**How do I make my ball bounce of my static barrier? it has a 2d physics behaviour
and the type is set to static, my player and ball has the same behaviour but type is set to dynamic.
**so i want my player to just not be able to go past the barrier but the ball to bounce off it **
when the game runs i want there to be one player vs an ai player and when you run with the ball it goes with it only if in collision.
**but instead my player will my player and ball at first they wont go through but when i apply a force because the player is kicking the ball it will go right through and if i make the player move it will also go out. **
It depends on how you are moving the players. If it’s using physics forces, then stick with physics actions.
But if you are moving the player by changing the screen position, either in events or with a behaviour (like top-down or platformer), then you should create events to handle the collision between ball and walls.
Sorry, can you clarify. Is it a top-down viewed game, or are you using the top-down behaviour?
If it’s just the view, then change the forces to physics.
If it’s behaviour, then you need to decide on either top-down behaviour with non-physics forces or physics. But not both as they have a habit of creating unwanted effects.