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"

Saving and Loading scores to UMG

So my blueprint has to show score and high-score on death UI. Compares previous high-score with current score and if score is larger sets it to high-score. Problem is that default value of high-score displayed. I don't know where it messes up to save high-score :(

alt text

Product Version: UE 4.18
Tags:
savegame1.png (750.8 kB)
more ▼

asked Mar 11 '18 at 09:58 AM in Blueprint Scripting

avatar image

MadElectron
26 4 7 14

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

1 answer: sort voted first

Seems to be a common problem people are encountering with saving games. I responded to a post about a similar situation here. You can find the answer to this issue in my response.

https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/1439020-save-game-not-working

The main mistake being made here is "creating" a save game object on start up and using that to "load/pull" game data. You will only ever load default data. The image below is for additional clarification. See the post for an in-depth answer. I never hook anything up to the false branch after "does save game exist". It is unnecessary, create the object when you are actually going to save game data. alt text

more ▼

answered Mar 11 '18 at 07:00 PM

avatar image

Nebula Games Inc
4.9k 27 9 14

(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