Announcement

Collapse
No announcement yet.

Having issues saving a high score.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Having issues saving a high score.

    Edit: Sorry about the huge images, not sure how to scale them down on here without having uploaded them somewhere external first.

    Hello, I've been trying for the better part of today to get a saving feature on a high score work properly, but I can barely graze the first steps and even though I've followed countless tutorials and viewed Tappy Chicken's blueprint system I just can't for the life of me figure this out. If you haven't guessed I'm basically brand new in this area, so I'm hoping it's something simple I've just neglected to do somewhere.

    So this first attachment is called upon when the player dies, off of a custom function which basically resets the level. I'm hoping everything here is setup correctly.
    Click image for larger version

Name:	picture1.jpg
Views:	1
Size:	783.0 KB
ID:	1148823

    The second image is the larger section which I'm hoping is what commits my variable to save.

    Click image for larger version

Name:	picture2.jpg
Views:	1
Size:	803.8 KB
ID:	1148824

    Whilst the end goal is to get a high score, so I know I'm missing a few things to dictate whether it would break the previous one or not, I am currently just having an issue trying to get anything to save so that's what I'm trying to fix. The High Score node is what I want to commit to save, and the localhighscore is currently this:

    Click image for larger version

Name:	picture3.jpg
Views:	1
Size:	794.6 KB
ID:	1148825

    so it's dictated by total distance travelled, which is calculated through the character movement.

    So I'm then displaying this figure on the UI, or attempting to, so I wanted to test out just the local highscore which returns a value of zero, on death, it actually shows up really quickly but then immediately goes back to 0 with the level reset.

    Click image for larger version

Name:	picture4.jpg
Views:	1
Size:	735.4 KB
ID:	1148826

    Click image for larger version

Name:	picture5.jpg
Views:	1
Size:	696.6 KB
ID:	1148827

    Obviously this isn't working but it's not even the value I wanted in the first place so I tried taking the value that would be stored in the save file, however it just results in nothing being shown at all.

    Click image for larger version

Name:	picture6.jpg
Views:	1
Size:	733.6 KB
ID:	1148828

    Click image for larger version

Name:	picture7.jpg
Views:	1
Size:	703.5 KB
ID:	1148829

    However if I go back and plug this in to the death trigger itself with the reset point at the end, the character never even dies, which lead me to believe it was a problem in the blueprint system itself, and after using the power lines it always stops at the same point shown below.

    Click image for larger version

Name:	picture9.jpg
Views:	1
Size:	841.6 KB
ID:	1148830

    I really have no idea where to go with this, I've tried looking around on the internet and whilst I've come across relatively similar threads, nothing I've found seems to solve my problem or I can't find a successful way to implement it.
    Last edited by Alphawolf154; 04-27-2015, 04:59 PM. Reason: Humungo images
Working...
X