Download

How to Make Score Add Incrementally???

Hello, hope someone with Blueprint experience can help with this.

Simple score widget setup that binds to hits from a projectile. If the user shoots a chair the score instantly changes from 0 to 10000. I think it would be cool like the old school games where the score counts up. So if you hit the chair the score would go from 0 to 1 to 2 to 3 to 4 really fast all the way up to 10000.

Thank you,
John

PS: Below is a screenshot of the score in game and also counting logic in the projectile:

I think what you are trying to do is to increment the score to a set amount, but have the score “run up” to that amount over a short amount of time, instead of instantly updating.

Here is a quick example of using a delay to do that. Score_Var is the current score for the projectile, while Score_Max is the total you want the score to increase. This would increment the score by one each time over the delay up until the score reached the value you wanted, set in Score_Max. If you wanted larger scores, you could use add to int by another variable instead of inc.

You don’t want to do this after destroying the actor (self), as it would stop updating when destroyed.