playMaker

Author Topic: exiting from wait action in playmaker[SOLVED]  (Read 1492 times)

teenden001@gmail.com

  • Playmaker Newbie
  • *
  • Posts: 10
exiting from wait action in playmaker[SOLVED]
« on: February 15, 2019, 06:36:37 AM »
Hi all,

I have three action in one of my state.

1st  - setting material color (Red)
2nd  - wait for 10 seconds
3rd  - stetting material color (Green)

i want to break this waiting period on some event (lets say button click)

it should come out of the state
either 10 seconds are over
   or
i click on button


Please help



« Last Edit: February 18, 2019, 09:48:23 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: exiting from wait action in playmaker
« Reply #1 on: February 15, 2019, 11:38:10 AM »
Hi.
Its best to split it in 2 actions then

state one :
Set Color (red)
have a wait action (10 sec)
make an event (name it 'Set Green' for example)
and use that in the wait action.

Then if you have a ui button you can use "Ui Button On Click Event" and use the same send event.

If you use a controller (or keyboard keys) button you can use "Get Button Down" or "Get Key Down"

State two :
Set Color (Green)

Zswag

  • Playmaker Newbie
  • *
  • Posts: 9
Re: exiting from wait action in playmaker
« Reply #2 on: February 16, 2019, 06:53:20 AM »
State 1, material change with finish event.
State 2, wait with finish event + click event with custom event.

Now u have two seperate outputs, interuption from click + a wait.

teenden001@gmail.com

  • Playmaker Newbie
  • *
  • Posts: 10
DragDrop Problem
« Reply #3 on: February 18, 2019, 12:40:33 AM »
Thanx for timely help, i did it and its working fine.

Next problem,

When i drag sphere, i want it to identify another object (e.g.capsule) in its way.
i put collider on capsule and made trigger checkbox on.

I  have added an FSM on capsule and in start waiting for collision to happen.
A user event is supported for this collision and that is connected to another
state and this state displays some msg to verify collision.

Please let me know what am i missing /or not correct.






djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: exiting from wait action in playmaker
« Reply #4 on: February 18, 2019, 09:21:38 PM »
Hi.
Answered on your other post

I will set this as [SOLVED]
« Last Edit: February 18, 2019, 09:47:58 PM by djaydino »