This commit is contained in:
Kevinmonitor 2023-02-08 13:21:04 +07:00
parent a25c13d846
commit ff758346fb
17 changed files with 76 additions and 11 deletions

View file

@ -60,6 +60,8 @@ task _ExplosionEffect(float enmX, float enmY, int targetList){
int effectNum = 5;
int dir = 1;
float maxAlpha = (GetAreaCommonData("Config", "ExplosionOpacity", 100) * 0.01) * 255;
Obj_SetRenderPriorityI(targetList, 40);
//TExplosionA(enmX, enmY, 255/effectLength, 9/effectLength);
@ -88,7 +90,7 @@ task _ExplosionEffect(float enmX, float enmY, int targetList){
let z_add = prand(-5, 5);
ascent(i in 0..effectLength){
_PetalMovement(Interpolate_Decelerate(2, 1, i/effectLength), Interpolate_Decelerate(255, 0, i/effectLength));
_PetalMovement(Interpolate_Decelerate(2, 1, i/effectLength), Interpolate_Decelerate(maxAlpha, 0, i/effectLength));
yield;
}