Jump to content
  • 0

How to make a helper add life to root?


RobotMonkeyHead

Question

I'm working a hyper for Wario where a bunch of coins (helpers) appear on the screen and they give you life and/or power as you collect them.  The problem I'm running into is that TargetPowerAdd and TargetLifeAdd don't seem to work at all for helpers, and also in the hitdef setting ground.type and air.type to "none" (so that no hit animation happens when he picks up a coin) makes it so the hit can not deal damage which means I can't set the damage to a negative value to add life to the character.

With those two things in the way I can't figure out how to get the coins to add life to Wario.  Any suggestions?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Since there is not RootLifeAdd, you should put the LifeAdd in State -2 or -3 and trigger based on something (maybe a var's value) inside your helper. Alternatively, if you have multiple instances of the helper, using "Helper(###)" won't be reliable. In that case, you can use ParentVarSet to trigger when the LifeAdd should happen.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...