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"

Variable only deducts once

alt textOk so i have 3 lives and when i hit my trigger box it drops me to 2. however, when i hit it again it remains at 2 instead of dropping to 1. this is Probably something stupid

Product Version: UE 4.12
Tags:
capture.jpg (60.9 kB)
capture2.jpg (61.4 kB)
more ▼

asked Aug 02 '16 at 06:29 PM in Blueprint Scripting

avatar image

maxweaponage
28 5 8 11

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

1 answer: sort voted first

You are not changing the value of the player character so when you die again you do the same calculation.

Player: 3 Game mode: 3

You die and this happens: Game Mode = Player.lives - 1 = 3 - 1

Thus: Player : 3 GameMode : 2

You die again and this happens: Game Mode = Player.lives - 1 = 3 - 1

Thus: Player : 3 GameMode : 2

Just update the player character as well.

more ▼

answered Aug 02 '16 at 06:33 PM

avatar image

NoobsDeSroobs
2.7k 107 35 180

avatar image maxweaponage Aug 02 '16 at 06:51 PM

sorry i'm fairly new to this, but how would i go about this?

I understand what is happening now but cant figure out where to start

(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