java - Game Dev - Reply and Follow Player Move -


i have 2 actors.

  1. parent
  2. child

what want child follow parent same move.

see more mean in video https://www.youtube.com/watch?v=6somlclpopm

look @ parent(blue bird) run , kids(yellow bird). kids following parent same position.

what i'm thinking right make big circular linked list of coordinate.

if player has example max 10 child , run in 60 fps, need create single circular linked list size 60*10 = 600.

parent , child access own counter.

so, every parent move save coordinate in circular linked list use kid.

what best approach , fastest solution this?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -