Hi I'm new to godot and trying to make a new game but keep having this where bug happen

Godot Version

Version 4

2d

Question

So I have 2 collisions on my 2d player character one for standing and one for crawling but whenever I start it I just clip through the floor and fall. What’s the problem with this code.

$collision1.set_deferred("disabled", true)
$ccollision_crawl.set_deferred("enabled", true)

Then it does the inverse when I’m not running the crawl function setting collision1 on and collision_crawl off.

“enabled” isn’t a property of a collision object, you’re probably looking to set disabled to false.

1 Like

Thanks

1 Like