Simple scoring system help?
I need a score system where the score goes up 50 points every second. Any help?
I've tried following tutorials and changing things because people are adding score for different things such as shooting an enemy. I guess the ways I've seen only work that specific thing. I have a Text Rendered actor in my scene because I want my score to show up on the floor of the level.
Some help would REALLY be appreciated can't move on with my project until I implement score.
Thanks so much guys.
asked Nov 04 '15 at 04:21 PM in Blueprint Scripting
So you need to have a setup like this hooked up to the tick event to increase 50 points per second.
You need to multiply the value you want per second by Delta Seconds. Delta Seconds gives you the time between tick events. Delta Seconds can change based off of performance, which is why it is an auto computed variable to keep things in line.
Also, be sure to hit the eyeball icon next to your Total Score variable on the left side of your blueprint screen. This will make your variable visible in the editor when you have the blueprint selected.
The default value will not change while the game plays, it is a default value. So once you hit play, hit F1 to gain control of your mouse and select your blueprint from the details panel, you should be able to see your score going up steadily at a rate of 50 points over the course of a second.
If you are wanting to have it tick 0,50,100,150 you could use a timer, or do the same thing as above to make your own custom timer, check to see if it is above a given value (which you know you are incrementing per second) then use a branch to trigger an increase of 50 to the score and reset your custom timer to 0.
answered Nov 04 '15 at 07:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here