In this video, I show you how to create a spell and cast it on your enemy.
To do this, we create a poison cloud and use a RayCast to check whether the enemy is in range.
If you liked the video and are interested in more don't forget to subscribe.
And If you would like a video about a game mechanic, leave a comment about it
💎 Assets
Poison Cloud: https://ragnapixel.itch.io/particle-fx
TIleSet & Wizard: https://maaot.itch.io/mossy-cavern
🎵 Music credits
"Ancient Winds" from Kevin MacLeod
❤️ Support the Channel
Ko-Fi: https://ko-fi.com/devdrache
🎬 Video Chapters
0:00 - What you can expect
0:10 - create Position Cloud Spell - scene
1:21 - create spell disappear - code
1:35 - add raycast - scene
2:01 - add use spell - code
3:39 - Setup scene and show result
☠️ Difficulty Levels
Beginner: Very few and simple code - For everyone
Beginner 2: More code but still quite simple
Advanced: Basiscs must be in place, simple code is over
Advanced 2: now things are getting wild :)