playMaker

Author Topic: How to Use EneryBarToolkit in conjuction with Playmaker  (Read 2920 times)

euwarnii

  • Playmaker Newbie
  • *
  • Posts: 5
How to Use EneryBarToolkit in conjuction with Playmaker
« on: January 31, 2016, 12:11:31 AM »
Good night,
I am new to Playmaker and EnergyBarToolkit and have set them up in my game.
However I noticed a strange error.
Basically I created an energy capsule that fills up an energy bar when player collides with energy capsule.When I made the Action of Change Bar Value in playmaker and added a sound to notify player they collected I noticed the sound worked and triggered properly, as well as the other action of destroy self. What I don't understand is why in the game at runtime the bar will not update. It only changes to the value the energy capsule adds to it when i stop and replay the game in unity. What am I doing wrong?

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: How to Use EneryBarToolkit in conjuction with Playmaker
« Reply #1 on: January 31, 2016, 01:47:55 AM »
If its supposed to monitor the live value you want to make sure "every frame" is checked- this is how I have Energy Bar toolkit setup


So I have an FSM on my player that manages the health_f variable- the Fsm from the screen cap is on the energy bar UI object- hope that is helpful

Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

euwarnii

  • Playmaker Newbie
  • *
  • Posts: 5
Re: How to Use EneryBarToolkit in conjuction with Playmaker
« Reply #2 on: January 31, 2016, 06:02:55 PM »
Thank you mdotstrange, I took your advice and it worked. The energy bar adds a value on collision, however i also noticed with my character it only works when they jump on top of the item, like mario jumping on koopa. I want the character to run into item like Mario running into super mushroom, star,  etc. and just pick it up and use it.
Here are the screenshots

GuinUK

  • Playmaker Newbie
  • *
  • Posts: 6
Re: How to Use EneryBarToolkit in conjuction with Playmaker
« Reply #3 on: July 04, 2017, 08:32:32 PM »
I've just done this but at the last step the 'update every frame' bool isn't there.
Any ideas?

The float turns into an Int ok but I don't have the option to update every frame
« Last Edit: July 04, 2017, 08:55:56 PM by GuinUK »