playMaker

Author Topic: Wrong Action Sequence  (Read 837 times)

mateussales

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Wrong Action Sequence
« on: August 09, 2019, 11:06:51 PM »
Hi! I'm kinda new here and full of noob question, so take it easy with me, please.

So, I'm trying to make my character look at a specific position and then move to this position very fast, so I used "Look At 2D" and "Add Relative Force 2D", but PlayMaker is running actions in the wrong sequence. It always apply the force first and the direction later. I already tried to use "Action Sequence" but it didn't make any difference. How can I solve this? Is this a bug?  ???

Thanks in advance.  :)

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Wrong Action Sequence
« Reply #1 on: August 10, 2019, 07:46:29 AM »
Hi,
Are they on the same state? if yes check if LookAt is on top of Force2D. Sometimes when I want some actions playing simultaneously, I call a specific Global Event with Broadcast all...and those actions must be on seperate FSMs

P.S. Why using Force instead of Velocity?

Hope it help :)
« Last Edit: August 10, 2019, 08:12:30 AM by LeDisciple »

mateussales

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Wrong Action Sequence
« Reply #2 on: August 10, 2019, 11:05:21 AM »
Hey!

Yes, they're on the same state and "Look At 2D" is on top of "Add Relative Force", so technically they should work properly. As I said, I even tried to use "Action Sequence", but it didn't helped either.

I'm using Force instead of Velocity because I want to recreate this mechanic: https://img.itch.zone/aW1hZ2UvMjY4MDE4LzEyOTI3MjkuZ2lm/original/hCbnLA.gif

How can I contact Jean to check if this really is a bug?

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Wrong Action Sequence
« Reply #3 on: August 10, 2019, 12:21:58 PM »
What I see in the gif it's that you have a State with your looking at mouse and Fire button actions. and then going to a second state containing the Force action dependent of where you click the mouse and going straight back to the first state.

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Wrong Action Sequence
« Reply #4 on: August 10, 2019, 12:22:47 PM »
And for Jean you can search him in the members section, good luck

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15330
  • Official Playmaker Support
    • View Profile
Re: Wrong Action Sequence
« Reply #5 on: August 12, 2019, 02:22:43 AM »
Hi,

 To reach me, simply pm me on this forum.

Have you been able to progress based on what LeDisciple said?

 Bye,

 Jean

mateussales

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Re: Wrong Action Sequence
« Reply #6 on: August 23, 2019, 09:33:15 PM »
Hi! I sent you a PM. Thanks!  :)