The idea is quite simple. You need to the enemy that goes left and right like you maybe saw in my previews enemy ai videos. After that you setup a variable that runs down. Once that variable is 0 or smaller you reset the direction to an upwards angle plus set gravity to a value so that it pulls down the enemy. Now the enemy is jumping. To reset the jumping motion you have an additional collision in the step event that resets the jumping. That’s it!
👑 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)
Previous video here:
https://www.youtube.com/watch?v=hTPHzHM2KQ0
Emcee Flesher CC4by
https://opengameart.org/content/super-dead-space-gunner-merc-redux-platform-shmup-hero
https://opengameart.org/content/space-war-man-new-laser-and-enemies
————————————————————–
0:00 What we will do
0:34 Subscribe
0:46 Quick theory how it works
1:44 Coding part
Add comment