Valks-Games / AvoidTheEnemies

Lets make a game like Vampire Survivors and Halls of Torment!
MIT License
5 stars 1 forks source link

Animating cards when hovering over with mouse not working as intended #1

Closed valkyrienyanko closed 1 year ago

valkyrienyanko commented 1 year ago

Notice how the cards sometimes instantly transition from red back to white? This is undesired. I was expecting them to all transition smoothly.

Note to add cards press "E" and to remove cards press "Space Bar".

https://github.com/Valks-Games/AvoidTheEnemies/assets/6277739/f66fdc55-8783-44d0-8b54-c725b45302cf

Here is the relevant code

https://github.com/Valks-Games/AvoidTheEnemies/blob/920f9bd78af7a6266eae14266660e88f63bee8d9/Scripts/UI/UICard.cs#L29-L45

I would prefer if you kept using GTween and editing it to your needs but if you must you can completely avoid it and use the tweens directly from Godot as GTween is just a wrapper for Tween.