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"

How Do I Increment Render Scale per Tick?

I am currently having trouble trying to increment the size of my outline, in my player HUD, for when your health is less than 20%. Essentially it's an outline that will continually expand and then once it reaches the number 3 in scale, it will then reset and do it over and over and over again, until your health is greater than 20%. However, UE4 doesn't seem to have an effective way to increment scale and I was wondering if anyone had any ideas or if I just overlooked something and was being stupid. Any help would be much appreciated! Below is my blueprint layout. Also I was contemplating doing a for loop, but not sure if it would work, since set render scale only sets the scale rather than increments.:

alt text

Product Version: UE 4.19
more ▼

asked Apr 30 '18 at 10:50 PM in Blueprint Scripting

avatar image

1 3 8 12

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

1 answer: sort voted first

Right after you +.1, also Set XIncrement variable to the new value.

Another method of looping something is using the Set Time by Function Name and Set Timer by Event nodes.

Timeline is also a good option if you need more control over the timing and interpolation.

more ▼

answered May 01 '18 at 07:55 AM

avatar image

15.2k 77 25 62

avatar image Dylanrockin May 02 '18 at 01:33 AM

Hmm... can you show me an example of what you mean by chance? I might just be misinterpreting what you're saying, but I just need to make sure I'm on the same page.

avatar image Everynone May 02 '18 at 07:09 AM

In order to have an ever growing (or until a condition is met, like in your example) value, you take the value, add to it and set it again, ensuring that the result of the operation is stored:

alt text

Next tick, you will be adding .1 to a value that was increased by .1 in the previous tick.

capture.png (25.7 kB)
(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