I know there are a few examples on the forums but maybe not with my current setup. My player has Platformer behaviour and not solid. I gave him the bullet behaviour with settings set to zero and "bounce off solids" turned on. My enemy has solid behaviour. However when my player hits off enemy he does not bounce. My bullet behaviour is enabled from the start. I also need my player to be able to bounce off enemy from any side so from the left top or right. Any ideas? Thanks!
Develop games in your browser. Powerful, performant & highly capable.
It will not bounce if all settings are set to zero.
Instead of Bullet behavior, use "Platform Set Vector X" action.
Player On collision with Enemy
....Enemy.X>player.X : Player set Platform Vector X to -1000
....Else : Player set Platform Vector X to 1000
You can add more conditions - if player is on the ground, bounce only to the left or right. If player is in the air, set vector Y as well.
Great, I will try this out! Thanks.
With A few tweaks your solution worked for me. Thanks!