x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Showing and Saving Highscore

Hey guys I am a bit confused on the set-up of showing and saving the player high score. I have made a blueprint save game file with a int variable of Highscore. In my level blueprint I have set up the save game nodes which all link back to blueprint save game, but how do I link this with my score blueprint and showing the new score.

This is in my Blueprint Level Script alt text

This is my Character Script alt text

Finally, this is my Score Script

Im just a bit lost on where everything should be and how to show it

alt text

Product Version: Not Selected
Tags:
savefile.png (100.0 kB)
character.png (43.1 kB)
score.png (53.1 kB)
more ▼

asked Nov 17 '14 at 08:00 PM in Blueprint Scripting

avatar image

Mint92
12 10 13 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The same way you already got your Score BP. Get all Actors of Class, Cast it to the Score class, get the Score Variable from the return value and set the HighScore Variable of your SaveGameBP before saving the Object.

If you want to load it, get the ScoreBP again, Cast it and this time Set the Score Variable. The Value you take is the one from your Loaded SaveGame.

more ▼

answered Nov 17 '14 at 08:42 PM

avatar image

eXi
6.8k 332 184 465

avatar image Mint92 Jan 19 '15 at 01:51 PM

sorry its been long, but where is the best place to put this, in the character blueprint or level blue print

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question