Advanced Gamemaker
Multi-homing rockets [Game Maker Studio 2 | Advanced]
The idea is quite simple. You have multiple targets but want to home into not the nearest one all the time. So what you can do is have a target randomly assigned to each homing rocket in a specific radius with a collision list. If that target is not more you assigne randomly another one and so forth.
Optional: You can have for each target a variable that marks it as being homed in. So when a rocket is being spawned it checks if that one is already marked and if not it reserves plus set this target for this rocket. This is not being shown in this video but a thought to explore if you really want to make this very distinct.
▶ Gamemaker Studio: https://www.yoyogames.com/get
▶ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations
♥ My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls
♥ My assets:
Get some assets at itch.io https://1up-indie2.itch.io/
♥ 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
0:00 Explaining what we will do
0:55 Subscribe
1:05 Concept explained
2:38 Coding part, easy way to only home to the nearest instance/target
5:40 Setting up multi homing where rockets scatter to random targets
Add comment