How to make actors follow a main actor? Snake effect
Tiny_Ideas
Member Posts: 326
Hello,
Looking for a simpler (less code, more equation) way to have actors follow the main actor.
Main actor moves,
Actor B follows main actor but behind it a fraction
Another Actor B follows main actor but a fraction behind previous Actor B.
Currently I have the main actor looping: add row at row 1, add its position to a Table in row 1, remove cell at end of table (Table has 100 rows.)
Actor B each have their own unique ID, and are simply constraining their x and y positions to their ID row reference in the Table.
Is there a better way to get this effect. Like I trail effect, or like a snake effect.
I also can't simple spawn and betray because they need to follow the main actor.
Many Thanks
Comments
have you checked out our free snake templates?
this could be what your looking for, let me know!
http://www.gsinvention.com/product/snake/
http://www.gsinvention.com/product/snake-2-smooth/
GSINVENTION FREE TEMPLATES
I did which is where I got the initial idea, but instead of always creating new cells I did it with the existing ones. I was just looking for a way without tables if it is possible. Thanks for the demo.
Let's tag @socks
Try this thread http://forums.gamesalad.com/discussion/comment/502150#Comment_502150
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS