I wanna make a melee attack hit one thing at a time if enemies were stacked on top of eachother but I'm not sure how to do so
Check out the system actions, where you can choose one random or senior. This helps when several identical objects collide simultaneously.
oh this works nicely Thank you! I have another question what if I wanted to do that but the closest one to me instead of randomly
Develop games in your browser. Powerful, performant & highly capable.
- There is a ready-made event to select the nearest one. But if you had a collision before that, you must first select all.
(need to check)
- You can create a function yourself that will compare the distance and select.
This works perfectly thank you very much