Beating Hight Score
Hellow, i'd like to do high score blueprint which will remember last high score i had done in game. When i beat it, there will be saving new high score. Points will be adding when i destroy actor. I've got 5 types of actors but i want that they will be counting together at one place. I try do it at my once with help of video on YT, but it doesn't help me. When i hit an actor, it doesnt even count. Any idea how to solve my problem? Thank You for your patient!
asked Sep 16 '15 at 04:30 PM in Blueprint Scripting
I don't know how savegames work in Unreal, but I've noticed some problems with your setup:
Also, your code doesn't do what you want it to do.
The Sequence node followed by the Get Actor of Class nodes doesn't do anything except being a) very expensive (collecting all those actors) and (once everything is connected correctly) b) increasing your click value by 5 (once for each type of actor).
What you're probably trying to do is:
The good news is if you move your code into the actor Blueprint on which you can click (point 3 above), only these actors will receive the click and when clicked will increase the score. You won't need the Sequence and pointless Get All Actors of Class nodes. (Pointless because you don't even use the return value.)
I've also noticed that what happens after loading/creating the Savegame is basically identical, so you can really simplify the code:
answered Sep 16 '15 at 05:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here