About 'Making the Cloud NPC'!

In this video (objectives)…

1 Create an NPC that can fire a projectile 2 Use Raycast2D nodes 3 Check what body is in an Area2D

After watching (learning outcomes)…

How to detect if a player is being aimed at and spawn a projectile at the player

(Unique Video Reference: 23_HD_GDT)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

I found a small issue with this section. Well, it’s just an unnecessary object.

The var xpos = Vector2() can just be var xpos. This is being assigned a number later in the script, so the Vector2 that’s created is just thrown away. Not a huge deal, just thought I’d mention it.

P.S. I’m enjoying the course so far. :slight_smile:

Privacy & Terms