|Topic was automatically imported from the old Question2Answer platform.
Im developing my first 2D game.
I have a player which is KinematicBody2D with CollisionPolygon2D surrounding the sprite
and i have bullet fired by the bad guy. the bullt is also KinematicBody2D surrounded by CapsuleShape2D.
The problem is when bullet hits player from left or right it is ok - move_and_collide method inside bullet script returns collision with player,
but when player jumps and fall off on the bullet this method don’t return collision and player is “standing” on moving bullet.
Cause I’m new in godot I don’t know if
- Should I somehow detect this situation in player script ?
- Should I make bullets to be other type of nodes like RigidBody2D ?
i see that method is_on_floor returns true when player is standing on flying bullet object
but what to do with it?
thanks in advance for any suggestions