Hi! I really liked the tutorial, however i have some questions. If i want the powerup to be able to be pickedup, but usable later and not instantly, how would one go about this?
Hi, so a really easy and simple way to go about it, would be to just make boolean variables for the power ups. Set them to false by default and then set them to true when you pick up the power up. Then you can create functions for them and hook them up to keybinds for example. And before you run the function just check if the boolean for that power up is true. And then set it back to false after activation.
Hi, might make a video on that in the future. However for those two specifically you can just create an actor like the ones here. Then for invisibility either set the character mesh to "Hidden in Game" and after delay set it back to false. Or create a see through material and change the material of your character to that for more of the "cloaking effect" rather than full invisibility. And for super jumping you just need to change jumping velocity in your character movement component inside your character blueprint.
It might be because of what kind of health system you are using. But first thing I would check is if in the Restore Health function everything is plugged properly. And then also you can do a test with Print string into event tick for it to print out your current health. That way you will be able to tell if the health is getting added and the issue is somewhere else. Or if the whole restoring health part doesn't work.
Hi! I really liked the tutorial, however i have some questions. If i want the powerup to be able to be pickedup, but usable later and not instantly, how would one go about this?
Hi, so a really easy and simple way to go about it, would be to just make boolean variables for the power ups. Set them to false by default and then set them to true when you pick up the power up. Then you can create functions for them and hook them up to keybinds for example. And before you run the function just check if the boolean for that power up is true. And then set it back to false after activation.
any powerups like invisible or super junping
Hi, might make a video on that in the future. However for those two specifically you can just create an actor like the ones here. Then for invisibility either set the character mesh to "Hidden in Game" and after delay set it back to false. Or create a see through material and change the material of your character to that for more of the "cloaking effect" rather than full invisibility.
And for super jumping you just need to change jumping velocity in your character movement component inside your character blueprint.
Got a problem with my health not refreshing everything else works tho , help?
It might be because of what kind of health system you are using. But first thing I would check is if in the Restore Health function everything is plugged properly. And then also you can do a test with Print string into event tick for it to print out your current health. That way you will be able to tell if the health is getting added and the issue is somewhere else. Or if the whole restoring health part doesn't work.
does this works in UE4?
Hi, yes this should all work in UE4 just like it works in UE5.
@@that_skye okay thanks