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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

SAVING HIGHSCORE AND CURRENT RUN TO SHOW PLAYER.

Hello, I am working on classic 2d endless runner and stuck on showing player their score and showing their high score as normally all endless runner do. I tried to save these as an integers in save game bp but can't get the value of variables in save game bp to save score because whenever I stop game see variable value I always get the variable value 0.

Product Version: UE 4.14
Tags:
more ▼

asked Mar 26 '17 at 05:12 AM in Blueprint Scripting

avatar image

Sid909
6 1 3 5

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

5 answers: sort voted first

I have solved this question by myself please close this post.

more ▼

answered Apr 08 '17 at 04:08 PM

avatar image

Sid909
6 1 3 5

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

hello how did you make the highscore system did you also got the total coins so that player can buy some skin later on from that .. could you help me in saving the game and dispLAY HIGSCORES AND RECORD THAT TO PLAYERS TOTAL S

more ▼

answered Sep 08 '17 at 12:37 PM

avatar image

skkhan
1 1 2 6

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

well, For high score you first need to save score which player make in game while playing. If you are using coins then you can use on event begin overlap coins, save the score and then after your level is over you can cast to your character in other level blueprint to get that variable and use some bools that if the score is higher than another variable named high score then get score variable and show it in UI and if lower than the highs core then get high score value and show it in UI. Remember you have to save value in variable while game is running to get score so that you can compare it with high score and please open another post for further answers.

more ▼

answered Sep 09 '17 at 04:28 AM

avatar image

Sid909
6 1 3 5

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

Could you show your bp

more ▼

answered Sep 09 '17 at 01:11 PM

avatar image

skkhan
1 1 2 6

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

Well here is my bp, it's all in my level blue print which opens when i die also u have to save score every time u collide with coin while game is running.alt textalt text

starting-saving.png (188.7 kB)
condition.png (214.2 kB)
doing-save.png (222.8 kB)
more ▼

answered Sep 10 '17 at 08:13 AM

avatar image

Sid909
6 1 3 5

(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