Logic to increase numeric value (from min to max) over a set period of time
If anyone can help would be great. For some reason I'm stumped, I think the signal generator or manipulator should be able to do this but I havn't found the correct settings.
I have a Fireball attack where the fireball grows on R1 press and is released it's size. I want the negative damage to raise with it. The damage of the fireball is dependent on variables set up for multipliers of level and other stat additions (+1 STR etc).
I have a input for min and max, they are negative numbers, and those values change based on other variables - the distance between the two are not consistent.
I want it so when I hold R1 the value moves linearly from Min to Max (Say -140 to -450) over 4 seconds, when released to hold that value until reset with the next press of R1. This value is to be input into a health modifier.
I have a timeline up for the R1 for other things, but I can't use key frames for the values because of the changing Min / Max, the keyframes only record the actual value when I tried with a slider and timeline position. There is more possible combinations of min/max than I can create each separate set for.
Thanks for looking!
-
Hi,
you can achieve this by wiring into the signal manipulator's graph directly. Switch it to "Custom Remapper" so that the graph appears. Then wire the output of a combiner to the input of the graph. Set the combiner type to be "4 numbers". The numbers represent:
A - minimum input - wire a 0 into this
B - maximum input - wire a 1 into this
C - minimum output - wire you logic calculating -140 into this (in your example)
D - maximum output - wire you logic calculating -450 into this
It should now do the custom mapping you require when you plug into its input.
Hope that helps
Matt -
First time I tried to implement this I couldn't get the results and then got distracted by the community Jam.
Coming back into it, I've now got this to work as the instructions, so a late thanks!
iniciar sessão para comentar.