I played with Godot-Engine and tried a little game.
But I can’t get collision information.
if is_colliding():
print ("Collision with " + get_collider())
get_node("Sprite").set_texture(walk_cycle_right_1)
move_state_right = 1
set_pos(Vector2(get_pos().x -10, get_pos().y))
It always prints false. I move my character ( KinematicBody2d→ Sprite/CollisionShape2d) with the command set_pos.
source
share