playMaker

Author Topic: Help Please!  (Read 960 times)

DonPeteLadiesMan

  • Playmaker Newbie
  • *
  • Posts: 5
Help Please!
« on: October 04, 2021, 08:44:03 PM »
Newb, still trying to learn PM. I'm trying to make this action happen. Have two FSM's set, one for the player and one for the enemy. I have for player State 1>Add Transition>Mouse Down>State 2>Move Towards safe place (When I click the mouse down, player moves to a safe place...works perfectly). I have Enemy FSM State 1> Move Towards Player (Basically Follows Player). Any way I can pause Enemy FSM so that when I click or trigger the event have it chase the player? and not start right away going after player? I tried to send FSM, Activate Game Object. Activate FSM, etc.  :(

10high

  • Playmaker Newbie
  • *
  • Posts: 33
    • Cult Manager - Google Play
Re: Help Please!
« Reply #1 on: October 05, 2021, 05:53:25 AM »
When would you ideally want the enemy to start following the player?

After a certain amount of time or when the player reaches a certain position?
Cult Manager


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Help Please!
« Reply #2 on: October 05, 2021, 04:19:16 PM »
Hi.
You can use a distance to check to stop and go follow.

for example if distance is 3 stop follow, if distance is 5 go follow.

You can also make him follow faster/slower depending on the (x)distance

DonPeteLadiesMan

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Help Please!
« Reply #3 on: October 05, 2021, 07:04:54 PM »
When would you ideally want the enemy to start following the player?

After a certain amount of time or when the player reaches a certain position?
Hi, thanks for the reply. Ideally, as soon as I start a trigger event, or click mouse.

DonPeteLadiesMan

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Help Please!
« Reply #4 on: October 05, 2021, 07:07:31 PM »
Hi.
You can use a distance to check to stop and go follow.

for example if distance is 3 stop follow, if distance is 5 go follow.

You can also make him follow faster/slower depending on the (x)distance
Hi, thanks for the reply. I want the enemy to ignore the player till trigger event or mouse click. I tried doing both but unfortunately, it doesn't work.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Help Please!
« Reply #5 on: October 06, 2021, 05:31:00 AM »
Hi.
Maybe you could do something similar as player but add a wait before moving?

have this on a separate fsm and you can trigger it from the player fsm by using Send Fsm Event (By Name)

DonPeteLadiesMan

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Help Please!
« Reply #6 on: October 06, 2021, 06:52:16 PM »
Hi.
Maybe you could do something similar as player but add a wait before moving?

have this on a separate fsm and you can trigger it from the player fsm by using Send Fsm Event (By Name)

Thanks I will try this