The Overclock blueprint components are pretty standard for a pickup, a static mesh and a collision box, plus a fancy lightning particle effect courtesy of Colin:
Following Norman's tutorial I built a flytext HUD blueprint to create a system to post text on the screen. I fiddled around with the screen ratios to get the text to appear centered above the player, finalizing on 4/9 the width and 2/5 the height of the screen.
Going into the Overclock blueprint, the collision event starts with a cast to check for the player (ThirdPersonCharacter), setting the Boolean on, setting 'invulnerability' (Health = a ridiculously high number), and showing the flytext 'Overclock On':
Following the show text, I used a sequence to separate the Overclock functions and the removal of the flytext after a 2 second delay. The main sequence continues by destroying the visible components of the Overclock blueprint, but the actor itself can't be destroyed yet since there are still more functions for the Overclock to perform. Next is turning on the visual cue indicating that Overclock is active, the blueprint activates a lightning particle effect stored within the character blueprint.
Now that the activation process is complete, the system delays the length that Overclock remains active (7.5 secs) before showing the flytext 'Overclock Off'', which leads to another sequence. The 1st leg of the sequence continues by deactivating the lightning particle in the character blueprint, resetting the player health to the default value, and setting the Overclock Boolean to off. The 2nd leg of the sequence handles the removal of the flytext before finally destroying the Overclock blueprint actor.
Here's a look at the Overclock pick up in effect:
No comments:
Post a Comment