Hello! I wanted to ask what is the best way to create segmental creature (as Urogorak from Roguelands or death worm from Terraria)?
You'll want to use the pin behavior, as well as put the segment objects into a family, which will let you pin segments to each other in order. https://www.scirra.com/manual/99/pin
Alternatively, you can simply give each segment the same set of movement actions/ai and have them offset by time.
You'll want to use the pin behavior, as well as put the segment objects into a family, which will let you pin segments to each other in order. https://www.scirra.com/manual/99/pin Alternatively, you can simply give each segment the same set of movement actions/ai and have them offset by time.
Exactly how would you accomplish the 'offset by time' part?
The simple way, assuming your head is leaving behind "waypoints" to control the path, would be to create a segment every x seconds until you don't want to create segments anymore. Each segment individually moves to every waypoint in order.
draiza
Check out these examples:
how-do-i-sprite-follo-wsprite-like-a-worm_p1147436?&sid=3a1b2148cdd9f7618d3a179850fec5a1#p1147436
https://www.scirra.com/tutorials/4789/c ... nakedragon
Develop games in your browser. Powerful, performant & highly capable.
Thanks a lot!))