playMaker

Author Topic: Delay in moving and stopping the player on mouse button down/up  (Read 1808 times)

Ronnie gaikwad

  • Playmaker Newbie
  • *
  • Posts: 22
hi I'm using a asset called 'path creator' to move my object in a definite path.And i want the character to move on mouse button down and to stop on mouse button up,to do that i have to activate and deactivate the 'path follower script'(that i got with path creator asset) . It works but there is a slight delay in action. the character does not stop as soon as the mouse button up and does not move as soon as the mouse button down, there is around 0.6/0.7 seconds delay.what should i be doing to have quick movement as soon as i click and unclick. below are the fsm and script component(path follower).

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Delay in moving and stopping the player on mouse button down/up
« Reply #1 on: February 08, 2020, 04:22:04 AM »
Hi.
I think the 'path Follower' script is delaying due to disabling/enabling it.

try using the action Set Properties and look if there is another way to start/stop

if you find something i can have a look to make a dedicated action.

Ronnie gaikwad

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Delay in moving and stopping the player on mouse button down/up
« Reply #2 on: February 09, 2020, 01:57:40 AM »
Tried set property and same thing is happening

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Delay in moving and stopping the player on mouse button down/up
« Reply #3 on: February 10, 2020, 06:53:49 AM »
Hi.
What functions did you get/tried?

Ronnie gaikwad

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Delay in moving and stopping the player on mouse button down/up
« Reply #4 on: February 10, 2020, 02:06:19 PM »
Functions? Do u mean actions?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Delay in moving and stopping the player on mouse button down/up
« Reply #5 on: February 12, 2020, 12:47:45 AM »
Hi.
Sorry i mend Properties.

maybe there is a bool that you could set to follow/stop follow

when you place a component you can look at the list of exposed variables



you can also try the Action 'Call Method' that can trigger some parts of a script