This is the 3rd video in a series on remaking Vampire Survivors in GameMaker.

The video tutorial shows you how to setup the make enemy walk towards the player. For that we only need a direction where to go and a speed value. The tricky part is that we want this to work for thousand of enemy instances on the screen. So what we do is to have the enemy instance to be as light as possible, so no further events then the create event. This one is a setup which will be later expanded for more control. That’s it.

You can find the whole code in the comment section.

🚧 For the future: This series will will build expanded the further we go into the series.


💻Project + assets found here: This will be found on my itch.io or on my patreon, for not, it is under construction


// video on parents/inheritance:
https://youtu.be/ytoWx081WWk



👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie

Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)

CHAPTERS
——————————————————————————————————-
0:00 What we will do
0:51 Subscribe
1:02 Theory how it works
1:32 Coding part
2:59 Creating a parent object to access multiple enemies at once
3:52 With statement to control the enemies
6:17 Swap the xscale towards the player
7:54 Game shown: Until we Die

1up Indie

View all posts

Add comment

Your email address will not be published.