playMaker

Author Topic: Question regarding delays between actions and unlocking actions[SOLVED]  (Read 319 times)

FunD

  • Playmaker Newbie
  • *
  • Posts: 29
    • View Profile
Hi,

I have two main concerns tonight. The first one, is that I've been trying to use the 'wait' action in several ways, without success so far. Not sure what I'm doing wrong. I downloaded this asset from the asset store (https://assetstore.unity.com/packages/tools/particles-effects/eye-blink-effect-fps-vr-61275) to have an eye blink animation, at the beginning of the scene.

It works fine, but just plays the animation once. I would like, to have a bit of wait after this action, and then play the animation once more. Would you know how I could do that? (Screenshot: https://ibb.co/34HMnTP)

Another thing I'm going to need a lot in my game, is another action being unlocked after completing an action.

For example, only once a dialogue is finished with a character, the player is then able to pick up/select an object in the scene or start a dialogue with another character. How do I go about locking and unlocking actions/events in my game?

Thanks, any help much appreciated :)
« Last Edit: February 15, 2019, 01:21:16 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Question regarding delays between actions and unlocking actions
« Reply #1 on: February 11, 2019, 10:01:19 PM »
For the first question I made a quick wiki page:
https://hutonggames.fogbugz.com/f/page?W1710

Let me know if this works as a tutorial. I plan to add more of these pages for common questions... to collect a core set of patterns that can be re-used. Repeating something with an interval is a good one :)

I'll do an Unlock tutorial page next, but somebody will probably have some advice here first. Hint: Look into Bool variables and PlayerPrefs actions.
« Last Edit: February 11, 2019, 10:04:55 PM by Alex Chouls »

FunD

  • Playmaker Newbie
  • *
  • Posts: 29
    • View Profile
Re: Question regarding delays between actions and unlocking actions
« Reply #2 on: February 12, 2019, 12:34:09 AM »
Hi,
Thanks for your message.

Regarding the wait action on the blink effect, I had already tried it as an action sequence, but it does not work. The Blinking Unity asset I bought is also visible as an 'effect' in Playmaker's list of action. Somehow, adding it as an effect ('blink', as shown in screenshot below) does not play the blinking animation. The only thing that works is calling the method, by adding the script of the asset.
But then it plays it at the beginning of the scene (once) and does not respond to the waiting action.

Here's a screenshot, so you see what I mean:
https://ibb.co/Kr65X8r


For the first question I made a quick wiki page:
https://hutonggames.fogbugz.com/f/page?W1710

Let me know if this works as a tutorial. I plan to add more of these pages for common questions... to collect a core set of patterns that can be re-used. Repeating something with an interval is a good one :)

I'll do an Unlock tutorial page next, but somebody will probably have some advice here first. Hint: Look into Bool variables and PlayerPrefs actions.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Question regarding delays between actions and unlocking actions
« Reply #3 on: February 12, 2019, 01:01:00 AM »
The Blink action is unrelated to the Blink Effect asset you downloaded. It ships with PlayMaker:
https://hutonggames.fogbugz.com/f/page?W202

Does the Blink Effect asset come with any docs?
"RunEditorPreview" sounds like it would only work in the editor...

Are you sure you set it as an Action Sequence? Wait then Call Method in an Action Sequence should work.

Did you try the 2 state loop shown in the tutorial?

FunD

  • Playmaker Newbie
  • *
  • Posts: 29
    • View Profile
Re: Question regarding delays between actions and unlocking actions
« Reply #4 on: February 12, 2019, 01:36:51 AM »
Thank you, it works now :)
My bad, I somehow thought the blink got automatically imported by the Unity asset, as I just imported another asset and it added some actions to Playmaker.
It works with the 2 state loop, but it doesn't work as an Action sequence in a single state. So that fixed it :)


The Blink action is unrelated to the Blink Effect asset you downloaded. It ships with PlayMaker:
https://hutonggames.fogbugz.com/f/page?W202

Does the Blink Effect asset come with any docs?
"RunEditorPreview" sounds like it would only work in the editor...

Are you sure you set it as an Action Sequence? Wait then Call Method in an Action Sequence should work.

Did you try the 2 state loop shown in the tutorial?

FunD

  • Playmaker Newbie
  • *
  • Posts: 29
    • View Profile
Re: Question regarding delays between actions and unlocking actions
« Reply #5 on: February 12, 2019, 03:58:15 AM »
..And please let me know when the tutorial for unlocking events is up, I'd be very interested to see how it works, regarding actions that can only be done once another action is completed in the scene, and how to lock an action once the player went through it once.

I tried to find a good tutorial or a solution, but I haven't been able to so far. I looked into bools but have not been able to make it work yet (I'm new to programming & playmaker..)
Thank you :)


For the first question I made a quick wiki page:
https://hutonggames.fogbugz.com/f/page?W1710

Let me know if this works as a tutorial. I plan to add more of these pages for common questions... to collect a core set of patterns that can be re-used. Repeating something with an interval is a good one :)

I'll do an Unlock tutorial page next, but somebody will probably have some advice here first. Hint: Look into Bool variables and PlayerPrefs actions.