blueprint

Heart pickup V1

  • Exposure: public
  • UE Version: 5.3

AxelBouten

January 17, 2024, 1:47 pm

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v

1 comment

  • AxelBouten

    January 17, 2024, 1:51 pm

    First version of the heart pickup which applies a multiplier for each time it is picked up. For this i added a new variable in the gameinstance to keep track of what the multiplier is, it determines what it sets this variable to by counting the amount of hearts left in the level with what are just 3 simple checks that see if the number of actors left is the same as a preset number (for example, if there's 2 actors left it will set the multiplier to times 3 as that's the right multiplier if you were to pick up 2 hearts, it has to factor in the fact it also counts itself.)

    Following that it sets the multiplier outcome variable with the right number, then casts to the game instance so it can set the multiplier variable with the correct number. I made a function out of the "applying points" part of the blueprint for brevity sake, i might use this in other blueprints as well to cut down on size.

    lastly it destroys itself when all other operations have finished.