Download

High Score

Hi All

Want to setup a simple high score and I know I have done this wrong. This was my first attempt and I could not finish it because I know it is wrong.

7137e3aa01d26bc1f0573f7eb969993ae624c93f.jpeg

Any Thoughts

Narg

hi, make sure your reference is good, has to be set somewhere in that BP or pulled from a cast of some kind, anyway…

a quick example:
HighScoreExample.jpg

** I pull the object from a cast (blue pin) (my score is actually in the ‘mycharacter’ BP so easy stuff), I then use the conditional Branch node to check ‘If’ Score is higher (or ‘>’ Greater Than) than High Score then set High Score to Score, ‘If’ Not then just continue.**

hope that helps a bit (the nodes on the right just show how you can hook up the Branch condition, this is out of a widget BP)

hi
look at my 2d infinite runner template , it can help you