playMaker

Author Topic: Player Selection and Continuous movement  (Read 614 times)

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Player Selection and Continuous movement
« on: July 04, 2020, 01:02:58 PM »
Hi !

This FSM will get the stored object from "Player Pick" fsm and move it to clicked position on map. It is working fine.

Problem is, after selected player, it is moving only to first clicked destination. Since, on second mouse pick, Selected player object became "null" in Player Pick FSM.

What I want is, I wanna keep move selected* player to new destination even before he reach previous destination. Currently, it can be done only after he moved to previous destination. to move new destination, have to select player again.

Note : My game is top view zombie defense game. there will be more than 1 player to select and move.

Thanks :)