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"

Simple scoring system help?

I need a score system where the score goes up 50 points every second. Any help?

I've tried following tutorials and changing things because people are adding score for different things such as shooting an enemy. I guess the ways I've seen only work that specific thing. I have a Text Rendered actor in my scene because I want my score to show up on the floor of the level.

Some help would REALLY be appreciated can't move on with my project until I implement score.

Thanks so much guys.

Product Version: UE 4.7
Tags:
more ▼

asked Nov 04 '15 at 04:21 PM in Blueprint Scripting

avatar image

SICCSE7EN
6 4 7 8

avatar image Stunt Thumper Nov 04 '15 at 05:31 PM

You shouldn't ask people how to program your game. If you don't understand timers yet, its pointless to attempt making a game.

avatar image SICCSE7EN Nov 04 '15 at 05:35 PM

Thanks for the helpful answer...

avatar image UpARiver Nov 04 '15 at 05:44 PM

If there is any tutorial that helped me into getting into UE4, was this series. https://www.youtube.com/watch?v=sNueIWCKoco&list=PLZlv_N0_O1gbY4FN8pZuEPVC9PzQThNn1∈dex=4

This video specifically explains what you want :D

avatar image SICCSE7EN Nov 04 '15 at 06:07 PM

Thanks for the video! It's exactly what I want for another part of the project so I'll definitely be bookmarking it, but It doesn't help with this question.

I'm new to UE4 (Obviously, haha) I generally focus on the modelling and animating side, so I have absolutely no idea how I'd go about implementing a score system at all in UE4 never-mind making it go up by 50 points every second.

avatar image UpARiver Nov 04 '15 at 06:19 PM

Ok I did that for my own game, you have to, is:

Open Event graph in your game mode,

Copy the text from this link and paste it there.

http://blueprintue.com/blueprint/wpw-dgsg/

Compile and that's it.

If there is an error its cause you have two event tick nodes so you need to delete the one thats not being used.

If this answered your question tick the check button on the comment :D

Learn blueprints, theyre really awesome!

avatar image SICCSE7EN Nov 04 '15 at 06:48 PM

I set it up just like that but my integer isn't going up as I play the game

avatar image UpARiver Nov 04 '15 at 06:57 PM

Thats cause you need to create the variable, define it as float and then you can do it.

If you need to use UE4, Id suggest youd start looking at tutorials.

avatar image SICCSE7EN Nov 04 '15 at 07:02 PM

I'd created it as an integer first, but I changed it to a float and did float+float and still nothing happens.

avatar image UpARiver Nov 04 '15 at 07:13 PM

Post a printscreen then.

avatar image SICCSE7EN Nov 04 '15 at 07:20 PM

alt text

There is what I've done I'm looking at the default value while playing the game and it stays at 0.0

snip.png (47.6 kB)
avatar image UpARiver Nov 04 '15 at 07:21 PM

I need the error as well, so send me your whole print screen after you compiled it.

The whole screen I mean

avatar image SICCSE7EN Nov 04 '15 at 07:27 PM

There isn't an error, when I compile it it's fine, just when I play the game the Total Score variable doesn't go up.

avatar image UpARiver Nov 04 '15 at 07:32 PM

Of course its not going up, you need to create something visual (HUD)where you need to check that the variable is changing (score), which is in the video I sent you.

avatar image Stunt Thumper Nov 04 '15 at 07:33 PM

lol thats a tick event not a second. You need a timer.

avatar image SICCSE7EN Nov 04 '15 at 07:38 PM

How do I get a timer?

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

2 answers: sort voted first

So you need to have a setup like this hooked up to the tick event to increase 50 points per second.

alt text

You need to multiply the value you want per second by Delta Seconds. Delta Seconds gives you the time between tick events. Delta Seconds can change based off of performance, which is why it is an auto computed variable to keep things in line.

Also, be sure to hit the eyeball icon next to your Total Score variable on the left side of your blueprint screen. This will make your variable visible in the editor when you have the blueprint selected.

The default value will not change while the game plays, it is a default value. So once you hit play, hit F1 to gain control of your mouse and select your blueprint from the details panel, you should be able to see your score going up steadily at a rate of 50 points over the course of a second.

If you are wanting to have it tick 0,50,100,150 you could use a timer, or do the same thing as above to make your own custom timer, check to see if it is above a given value (which you know you are incrementing per second) then use a branch to trigger an increase of 50 to the score and reset your custom timer to 0.

math.png (48.0 kB)
more ▼

answered Nov 04 '15 at 07:50 PM

avatar image

NoahTimefireVR
535 16 11 37

avatar image SICCSE7EN Nov 04 '15 at 08:05 PM

This helped a lot thanks. Got it working now!

avatar image NoahTimefireVR Nov 04 '15 at 08:09 PM

Glad to hear it. Good luck. if it is a good answer please accept it as accepted.

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

alt text

Made this real quick and tested that it works.

untitled.png (100.4 kB)
more ▼

answered Nov 04 '15 at 07:44 PM

avatar image

Stunt Thumper
180 13 19 34

avatar image SICCSE7EN Nov 04 '15 at 07:56 PM

I don't have Set Timer By Event just Set Timer but it says Function rather than event.

alt text

print.png (398.0 kB)
avatar image NoahTimefireVR Nov 04 '15 at 08:07 PM

Try just right clicking and not dragging out from a pin.

avatar image SICCSE7EN Nov 04 '15 at 08:37 PM

That's what I did first and I got the same result. Someone posted another way to do it and I managed to get it working that way. Thanks for the help though man.

(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