0

change alpha over time

Mark 3 years ago updated by Christian Engler 2 years ago 9

Hello All,

I am new to Bolt, I love it.  I can not code at all. I kind of know playmaker, but i never got

serious with that.   Bolt is way better and will catch on I am sure of that.  Playmaker an not condense its graphs..  that alone will put Bolt ahead in the coming years.   SO i am determined to stick with Bolt.


I have a problem I hope some kind soul(s)  can help with.   What I would like to do is very simple.  I want to  fade out a object  (  Emerald AI after its dead, Using RFPS )  So all

I would like to do is fade out the dead Ai , and it could be used to fade out anything.


I tried lerp, tried a lot of stuff over the last 3 days,

Below is a screen capture of what I have that is working very well.  It's fast when you

go to set the Alpha change in play mode.   I really want some way of hooking this

up  so that it can fade over a set  time.  

Thank you for any pointers or graphs, thanks a lot for any help..


Set Alpha working for a single instance...

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
+2

Quick/untested solution: 


smooth time is how long it will take to go from alpha 255 to 0. 

+1

Thank you so much !!  I had to go out, having to house sit :(   But I got back and saw WOW,

Thank you for the fast help and general caring to take the time.  I set this up and it work's great!!

Thanks again,  Mark

+1

Glad I was helpful!

+2

What Ozgur said is correct, if you want more control over how it transitions from current value to end or more, look into a free tweening plugin. DOTween is pretty much the best. I and aspy have some macros up here on the forum to get you started. Tweening integration will be directly integrated into Bolt in 1.4. not too far off. It will be so easy then.

My wrapper for floats: 

https://support.ludiq.io/communities/5/topics/525-floatto-dotween-wrapper

Aspys' two extensions to expand tweening callbacks and sequences: 

https://support.ludiq.io/communities/5/topics/1145-tween-options-dotween

https://support.ludiq.io/communities/5/topics/1169-sequence-tools-dotween


The DOTween plugin: 

http://dotween.demigiant.com

+2

Thank you Jason,    I had looked at your macro's for Dot tween, they look awesome!

I had thought maybe I should try to figure it out Using your macro's, I'd be scratching my head a bit..

I believe in Bolt and there is a lot of people here with wisdom and even more to come, I am sure of that.

As a side note I watched all of GamerPET  You tube tutorial on Making a PvZ Clone, Where he gives

a shout out to you, and he said you helped him too.   Thank you for all your doing in Bolt here,

and all the help you give.  ( Yes I have lurked on Discord a few time too )


I am very excited about the future of Bolt  and it's community and all the very cool stuff coming to

Unity this year!!!     

+2

Glad to help whenever I can. Come back to it if you ever need it, but chances are direct integration will come first. It's very soon. 

Community is great, though, never ran into anyone causing trouble. Been around since about 2nd release month. Huge reason to motivate me to continue doing this  :)

i'm very new to unity and bolt

how is wrapper working. i guess this is wrong ?

What you have will only create a new tween every frame. It won't play without you using the DoTween play method manually. I created the other unit to make it easy.

Use the second Macro. FloatTo Routine to use it like a coroutine outside of update. It does everything with initializing starting and stopping, ect. You can add an output port if you need access to the tween manually. I just haven't done that.

thanks, i'll try that.