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"

Is It possible to make hunger system like Minecraft?

I kind of understand the part, how blueprints are made and used, but the problem is... I don't know, how to link hunger to stamina and health. For example In Minecraft, if you're low on hunger you can't regenerate your health(even loses health slowly, when hunger reaches 0%) and can't sprint(run) in the game . And if you eat, it starts to regain health, hunger and able to sprint again. Is it possible, in the blueprint? Or is it really, complicated coding and hard to understand?

Thank you :)

Product Version: UE 4.18
Tags:
more ▼

asked Dec 12 '17 at 10:37 PM in Using UE4

avatar image

I_Hate_Apples
3 2

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

1 answer: sort voted first

Yes, it's very achievable in Blueprints... for this you'd have float variables for "health" and "hunger", and a boolean variable for "can run". Then you'd set up the logic for how they interact, exactly as you mentioned. I'd start googling some Unreal beginner tutorial... especially including variables...

more ▼

answered Dec 13 '17 at 03:53 AM

avatar image

aNorthStar
938 8 17 20

(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