Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | BuddyGames |
Signal from Area2D is meant to only enable queue_clear when it’s in contact with body, but the player instantly dies on spawn.
Was following this YT tutorial by GD quest (time stamp 1:43:36). I have the exact syntax and followed the steps (to my knowledge) perfectly. Anyone able to take a crack at what’s up?
#Player script
func _on_EnemyDetector_body_entered(body):
queue_free()
the rest is just node stuff which I can provide pictures of if required.
Check enemy body collision shape. Does it have correct size?
AlexTheRegent | 2021-01-09 17:17
Yeah, the size is fine. Plus I have it spawned far enough away from the player. I’ve been experimenting with it all day, and i changed queue_free to jump, and intrestingly it seems to always activated the function when the game starts
BuddyGames | 2021-01-09 17:33