I have an ability which applies a tint color to a unit when the ability is activated. My issue is that when the ability ends, the tint color isn't removed. At this point I'm not sure how to fix this. I haven't been able to find any good information online either. I have been using the Seeker Missile tint as a reference and that got me this far which is pretty good imo.
The Benign attribute is applied correctly, the tint color is at least applied, the ability last for 30 seconds as expected, but I just can't get the tint to stop taking effect when the ability ends. Any ideas?
Behavior (Buff)
Stats: Duration set to 30.0.
Behavior: State Flags Benign is checked.
Effect (Apply Behavior)
Not doing anything but applying the above behavior.
Finally got it working! That took far more hours than it should have.
All I changed was I set the Clear Tint Color message Target to _Unit and I gave the Set Tint Color and Clear Tint Color messages the same Label; for former of which I believe fixed it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have an ability which applies a tint color to a unit when the ability is activated. My issue is that when the ability ends, the tint color isn't removed. At this point I'm not sure how to fix this. I haven't been able to find any good information online either. I have been using the Seeker Missile tint as a reference and that got me this far which is pretty good imo.
The Benign attribute is applied correctly, the tint color is at least applied, the ability last for 30 seconds as expected, but I just can't get the tint to stop taking effect when the ability ends. Any ideas?
Behavior (Buff)
Effect (Apply Behavior)
Not doing anything but applying the above behavior.
Actor (Simple)
Behavior.Evade.On
-> Create
ActorCreation
-> SetTintColor 255,50,50 1.000000 Bounce EvadeTintRed
Behavior.Evade.Off
-> ClearTintColor 0.500000
Behavior.Evade.Off
-> Destroy
You've not told it what tint you want it to clear in "ClearTintColor 0.500000 Bounce EvadeTintRed".
I'm also not sure that spaces work in tint names? I'd have to check.
@TyaArcade: Go
Bounce is part of the tint color message (causes the actor to flash) and is thus not needed in the ClearTintColor message.
@PirateArcade | I make games | Ask me things on Discord
@TyaArcade: Go
The Target of the ClearTintColor message is set to EvadeTintRed and the 'bounce' effect is working when I test.
There aren't spaces in the tint name, it's set to EvadeTintRed.
i have to ask, does you behavior end? or maybe you have to delay the destruction of the actor too.
Finally got it working! That took far more hours than it should have.
All I changed was I set the Clear Tint Color message Target to _Unit and I gave the Set Tint Color and Clear Tint Color messages the same Label; for former of which I believe fixed it.