I am creating a game in which you run into various powerups which either take or give life, while others are able to be collected for later use. I’ll break it down:
A power up that increases life.
A power up that decreases life.
A power up that can be collected for future use, and upon a key press, increases life.
All of this displayed on a meter.
I hope this is not too general, though I am seeking something simple to begin with.
Id have to say the fps demo has good examples with the Health pack prefab. Have a close look at that and if you see any “+” signs, try substituting for a “-” to decrease health…
About using one later, On a trigger event, turn on a inactive game object which has a script on it. That script will use player input(pressing a key) to do what the health pack does.
If thats too over your head, you need to back track a bit and do some tutorials.