Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | AbhishekL |
func _on_StompDetector_body_entered(body:
PhysicsBody2D) → void:
if body.global_position.y >
get_node(“StompDetector”).global_position.
y:
return
queue_free()
I am using the above function to signal stomp function but it results in error. Expected a type for an argument. How do i solve this?
Do you get the error at compile time or runtime? Which line has the error? And I assume your code doesn’t actually have all the line endings as shown above?
SteveSmith | 2022-11-26 14:24
The error will tell you which line it refers too, its difficult to help without seeing the error and the specific line of code which is going wrong.
Gluon | 2022-11-26 21:24