I’m making a Hotline Miami inspired game and in the game characters are divided up into two pieces, the main body and the legs.
I made an event where the enemies legs are put around the main body, however this does not work when there are multiple enemies in the scene.
I cannot duplicate the the objects for each instance of enemy, I plan for this game to be a rogue-like, meaning levels will be generated rather than being handmade.
How can I fix this?
Hi,
without having more information about the way you set things up, it is difficult to be more specific but it seems that a ‘for each’ event is what you need.
https://wiki.gdevelop.io/gdevelop5/events/foreach/
1 Like
You can link the 2 object and then pick the legs linked to the body.
This adds the body and leg objects and links them.
If the bodies are already in the scene you can either link the legs that are in collision with the body or add legs and link them.
Body and leg objects already in scene. The parts would only need to overlap. They wouldn’t need to be perfectly placed. The actions do that.
Or Body objects without legs. Just add legs and link
1 Like