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"

Need Help With Leaderboard

I am trying to add in 3 different text objects in game that show Score, Time, and Highscore. I am very new to Unreal and cannot figure it out. Basically my game will be on a 60 second timer, and your goal is to shoot the target as many times as you can in the 60 second period. After 60 seconds the timer should reset, the score should go back to 0, and the highscore should be changed to your last score if it is greater than the current highscore. I thought that maybe if I used labels, i could use variable to change the text of the labels, but have not been able to figure it out. If anyone could offer a quick and efficient way for me to add a leaderboard, it would be highly appreciated!

Product Version: Not Selected
more ▼

asked Mar 12 '15 at 03:30 AM in Using UE4

avatar image

1 2 1

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

1 answer: sort voted first

Hey there (:

First you need to choose the class where you want to save this.

I pretty good one would be the "GameState" Class. Create a new Class or BP from the GameState Base Class and go into your Maps and Modes Settings in "Project Settings". Here you can set the GameState Class you want to use (same way as you set the Character, Controller and HUD:


Then create your variables in this BP. Like float Timer, int Score and int Highscore.

Now you can set these variables like you want in any BP/Class you want by just searching for the GameState in your Event Graph:


Then cast it to your custom BP/Class and set/get the variables like you need them.

more ▼

answered Mar 12 '15 at 10:16 AM

avatar image

6.8k 333 185 470

avatar image logg99 Mar 12 '15 at 08:21 PM

Thanks for the reply, only problem is I dont understand any of that :/, any chance you good noob it up for me?

avatar image eXi Mar 13 '15 at 10:18 AM

This is pretty easy already. I recommened you to watch some basic tutorials if you don't understand that :/ I could only show you how to create the variables, but if i need to do that, then you really need some tutorials first, because more basic it can't become (:

(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