Closed teak421 closed 7 years ago
Hi there!
Lovely to hear from you @teak421 !
This is intended to be used in a timer or tick function right? As you increment toward the goal?
If so could you add a comment indicating that this should be used in that way, and maybe return a bool to indicate when the goal length has been reached so user can end the timer if they are using one?
If you had other intended use let me know!
♥
Rama
Please see attached the screenshot that should explain better than me typing here.
PLEASE disregard the errors in the below screenshot... I'm at work and do not have all of the source code loaded.
Also, working on making into a single node... At least, trying.......
ahh I see, well doesnt that camera move in stiff increments though with each key press?
if you started a timer on the input and cleared the timer on the release, then you could have a continuous zooming effect, using smaller zoom increments.
You could do this in BP, obviously can't use a timer in static BP node :)
Timer of like 0.01 seconds
Let me know!
Rama
I think because its not a smooth zoom it wouldn't be a good idea to add... Thanks!
well you can't make it smooth from a static BP node context, but that's why you'd just show a pic of the timer setup in BP :)
Rama
OK... I'll work on that... and, maybe try to make it a single node too. Thanks for the tips!
Could the timer be in C++ so the end-user doesn't have to mess with it?
no, but its easy to setup in BP, no timers in static BP functions
OK...last question...which specific timer mode are you speaking about? Should have had this all worked out before submitting... apologies....
in blueprints, you would just start a timer on pressed, and end it via handle on released
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseTimers/Blueprints/
:)
Hi. Need to retract this PR because an Actor Component was created that doesn't need a timeline in BP. Seems to be easier. Thanks for all of your pointers / suggestions...
teak
FYI. Plugin here: https://github.com/teak421/SmoothZoom
Ahh thanks for sharing! :)
Rama
Added a ZoomIn and ZoomOut node. Each node has a Min Target Length / Max Target Length and also a Zoom Intensity. Hook in a InputAction and go.
Please review and modify as necessary. If too simplistic or not needed, please disregard.