Howdy hey again.
Is this code no longer valid in Godot 4's GDscript? "$CollisionShape2D.shape.get_extents()"
You see, I'm trying to flip my RayCast2D to the other side of my enemy's collision box shape (I was pasting over code from an older tutorial to make my enemy behave like a red koopa troopa by saying "$RayCast2D.position.x = $CollisionShape2D.shape.get_extents().x * direction"
But I keep getting an error saying "Invalid call. Nonexistent function 'get_extents' in base 'RectangleShape2D'
Is this a new thing in Godot 4, or should is my project/code the problem?
(if it's necessary to upload my project/code, can someone tell me how?)