Thanks for making this video. I love when people take the time to properly explain concepts. I’m a big picture person and when I don’t understand the why I completely lose sight of everything else. Great descriptions, great focus on showing what you’re doing while you’re doing it. This is the best part for me. Some tutorials Blaze through assuming we know. But the issue there is I wouldn’t need a tutorial if I already knew! So I extend my sincerest thank you.
Can I use await inside of an area2d signal? Specifically I have a script where my enemy follows my character when they’re in range. However, even though my character isn’t in range the enemy automatically starts approaching. Not sure why this is because I used an if statement with something like: If body.in_group=“player”: - not on my pc at the moment but I would be interested to see if await could be used to fix my issue.
You can, of course, wait for a signal, but from the sound of it, it seems that you only want to approach when in range. In that case you could connect the function which makes the enemy seek your character to the body_entered signal of your Area2D. Thus, the character would follow only when entering some area that you define around your character. I know about this amazing tutorial th-cam.com/video/MtEh6vofiqQ/w-d-xo.html from Queble which tries to achieve what you describe.
Thanks for making this video. I love when people take the time to properly explain concepts. I’m a big picture person and when I don’t understand the why I completely lose sight of everything else. Great descriptions, great focus on showing what you’re doing while you’re doing it. This is the best part for me. Some tutorials Blaze through assuming we know. But the issue there is I wouldn’t need a tutorial if I already knew! So I extend my sincerest thank you.
I'm really happy to see comments like this. I'm glad to know I'm heading towards the right direction. Thanks a lot for the kind words 🥜
I just start thinking about how asynchronous operation work in Godot... Thanks for lovely piece of knowledge !
Thank you. This was very easy to digest
why the lethal company screenshot in the thumbnail? 🤔
Well, since this is a coroutine video, I thought it fitting since the game has YIELD sign.
Can I use await inside of an area2d signal? Specifically I have a script where my enemy follows my character when they’re in range. However, even though my character isn’t in range the enemy automatically starts approaching. Not sure why this is because I used an if statement with something like:
If body.in_group=“player”:
- not on my pc at the moment but I would be interested to see if await could be used to fix my issue.
You can, of course, wait for a signal, but from the sound of it, it seems that you only want to approach when in range. In that case you could connect the function which makes the enemy seek your character to the body_entered signal of your Area2D. Thus, the character would follow only when entering some area that you define around your character.
I know about this amazing tutorial th-cam.com/video/MtEh6vofiqQ/w-d-xo.html from Queble which tries to achieve what you describe.