Day 35 Fading sprites & Sprites Rotation
Today Mr.Ron came in and taught me couple of things. Firstly he taught me how to fade of the spries according to its life with a ramp to control the timing.
![]() |
alpha ramp |
And also I asked him about the rotation of the sprites. As normally in other scene files they show the sprites rotation in a direction, clock-wise or anti-clockwise. What I wanted was, as the explosion comes from a source the rotation have to be away the blast.
So, he taught me the how to rotate the sprites in 2 opposite directions. By having a $F * sign($TX)*10, the rotation will be along TX but in opposite sides and the rotation velocity will be constant and not increase.
![]() |
simple illustration |
![]() |
adding expression to rotation |
![]() |
Add velocity on point node. |
After tweaking
No comments:
Post a Comment