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"

HIGH SCORE

I got PLAY button working by resting my Coin Widget back to (00) at the beginning of the game. Before the Coin Count from previous levels didn't reset to (00) when PLAY button was pressed. Not it works OK by resetting the score to (00) when PLAY button is pressed.

Now the problem is that highest Coin Count don't stay anymore and it's replaced with reset (00) Coin Count which overrides the Highest Coin Count. How would I set it up so the Highest Coin Count is recorded at all times regardless when pressing PLAY button.

Product Version: UE 4.12
Tags:
more ▼

asked Jan 18 '17 at 04:05 PM in Using UE4

avatar image

silverfish1000
122 11 21 27

avatar image CleanCut Jan 24 '17 at 04:44 PM

For additional problems, you should really create a new AnswerHub post.

avatar image silverfish1000 Jan 30 '17 at 01:49 AM

Yes right!. Will do.

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

2 answers: sort voted first

Make sure to store Highest Coin Count in your Game Instance, because the Game Instance is the only thing that isn't reset when you load a new level.

more ▼

answered Jan 18 '17 at 04:15 PM

avatar image

CleanCut
2.1k 66 84 77

avatar image silverfish1000 Jan 18 '17 at 07:34 PM

HI again Clean Cut. Thank you for the answer.!! What you suggested before about putting Coin Count and set it to (0) works Great. Do you mean Coin Count or Coin Bank. I know my Coin Bank is stored in my Game Instance. Coin Bank is the one which is stored in my Game instance. Do you mean I should store Coin Count in my Game Instance as well?

avatar image CleanCut Jan 18 '17 at 07:38 PM

If you want something to stay after loading a level, it should be stored in the Game Instance.

avatar image silverfish1000 Jan 18 '17 at 09:06 PM

It is saved in the Game Instance but remember we are resetting it with on button pressed. Once reset it becomes the new Game Instance data stores. Which in return I loose the Highest Coin Count stored in the Game Instance. What do you think Clean Cut??

avatar image CleanCut Jan 18 '17 at 10:55 PM

You need to store your high score in a different variable than your current score.

avatar image silverfish1000 Jan 19 '17 at 10:46 PM

Clean Cut!!. So I got the Variables set up and all but the problem is that what ever coins I collect in the game the coins are just adding on top of previous Coins Collected. So If i get 10 coins now then in next level I get 5 it will up date the High Score to 15. lol. How do I fix these properly. Seems kinda complicated. Thanks for you patience!!

avatar image silverfish1000 Jan 19 '17 at 11:06 PM

What I'm trying to say how to tell Game Instance not to add Coins to High Score and instead don't add them unless the current Coin Count is higher the the High Score. Thank's for you Mega Patience Clean Cut!!!!

avatar image CleanCut Jan 20 '17 at 07:40 PM

Use a branch node to only set the high score when you want to.

alt text

avatar image silverfish1000 Jan 21 '17 at 06:12 AM

Thank You Clean Cut!! That's exactly what I have been looking for!! Thanks for taking your time to answer my questions. Once I get these to work I know that my next question will be How do you save High Score and loaded back up after you turn off the game fully. Is there some kinda short answer to these? Also Thank You for taking the actual pic of Blue Print. Also Clean Cut do you have any mobile games for purchase on Google??

avatar image silverfish1000 Jan 21 '17 at 05:50 PM

I'm Keep loosing my things I type in here. DAM...
What I said before My question got lost was. If you cold only tell me where these goes exactly. I put it in my Game Mode but don't seem to work. I try different places but The Regular Score and High Score are keep adding together. Could you please let me know if I connect these blue print on Event Begin or Tick and also I need to know where would be the place to put it. MEGA Thank You. When ever you have time!!!!

high score.jpg (339.1 kB)
avatar image silverfish1000 Jan 21 '17 at 05:54 PM

Jesus my Comment are not Saving for the third time now. Clean Cut. Here is my Blue Print but not sure where to connected and to what. Would it be On begin play and would I put it in my Game Mode. I did put it in game mode but my Regular Score and High Score are still adding together. What am I doing wrong?

avatar image CleanCut Jan 21 '17 at 06:54 PM

Regarding where to hook up your nodes:

You would want to call those nodes when your amounts of coins changes. The cleanest way would be to find the place where you process getting a coin. Or, you could just do it in Event Tick, which will check every tick. Not as clean, but works just fine.

Regarding saving/loading:

See the Saving Your Game documentation.

Regarding my projects:

See Agile Perception -- at the moment my only published mobile project is the free game Jump Jump Fall -- soon Topple Town will be available for iOS/Android -- which will be my first for-pay published project.

avatar image silverfish1000 Jan 21 '17 at 08:59 PM

Keep up the good work with your games. Must be fun specially when you already know how to use UE4 well. Cant wait to try your games out specially Topple Town. I will download instantly when it's ready!!!! For now I have to get the dam score working. Got a lot of work on my hand because the way whole thing is hooked up. Thank You for the answers!!! Cheers for now...

avatar image silverfish1000 Jan 23 '17 at 02:17 PM

Also Clean Cut. I'm not sure where to put these. On Event Begin or something else. I Actually have Highest Level and Highest Fruit completed, collected. Here is my Blue Print you suggested but like I said these noob doesn't know where to put it. Could you check my Blue Print before I seriously start pissing you off and see if I did it right. Mega Thank You!!!

avatar image silverfish1000 Jan 23 '17 at 02:17 PM

Clean Cut Your the Man!!! Thank You!! Sorry for late reply. These is Definitely the answer I have been looking for. The only reason I know these because of Mathew Wadstein ue4 tutorials on YouTube. I came across him and I had to ask him. I have to say You guys really Kick ass. Clean Cut do you have any games for download on Google Play or else were. Let me know I would like to see what you and your team are working on. If you have any mobile games for download I would like to purchase it for sure. Also do you know of any places besides UE4 Marketplace where you can download ready made game templates. I'm more in to creative part and not so much in to technical stuff like you are. All of these technical stuff is rocket science to me. Cheers.

avatar image silverfish1000 Jan 24 '17 at 03:56 PM

Clean Cut. I was wondering if you know anything about Automation tool error when packaging. It's really put my project on halt right now. Not much information on Answer Hub but to Verify reinstall Visual 2015 with custom settings. Maybe I missed something during the installation. Clean Cut HELP!!! Also thank's again for High Score info. I'm rewiring my blue prints right now. Thank you again!!!

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

You could also use a SaveGame

more ▼

answered Jan 18 '17 at 07:50 PM

avatar image

erik321123
408 17 15 31

avatar image silverfish1000 Jan 18 '17 at 09:11 PM

I think I tried save game but it's not something that works well. I need it to automatically save on it's own without me doing it. The same system like Pack-man or Galaga. High score shown at all times in main menu. When you press play it goes back to 0 and start over again. If you achieve Highest Score then it's show in main menu.

(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