I was fiddling around with the Godot engine and tried a little game.
But I can't seem to get an info on colliding.
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'm moving my character (KinematicBody2d
-> Sprite/CollisionShape2d
) with the set_pos
command.