Crimsondeath
Active member
Hi again! I hope everyone had a great start to the new year!
Well, I need help to create a huge flash from a explosion (those kind of explosions that turns the screen totally white and them fade away smoothly).
So I try to do it with the drawbox method, but there is a problem:
The white box didn't shows or I think it shows (by just smalls milliseconds) when I use "if frame" but without that, the white box didn't appear, I also need that the white box fade out slowly.
What should I do? does anyone has a script for do it? or It's better do it with a white sprite image
.
----------------------------
Besides, does anyone know how to set falling knocked down entities speed and height with scripts? I can do it with "dropv" and the attack box, but I just wonder if I can do it without it.
Thanks
Well, I need help to create a huge flash from a explosion (those kind of explosions that turns the screen totally white and them fade away smoothly).
So I try to do it with the drawbox method, but there is a problem:
Code:
name Explosion7
type none
shadow 0
...
anim idle
loop 0
delay 3
offset 48 49
@script
if(frame>=1){ // <--- I already tried without the conditional "if frame" :(
drawbox(0, 0, openborvariant("hresolution"), openborvariant("vresolution"), 1000, rgbcolor(255, 255, 255), 1);
}
@end_script
frame data/chars/misc/Xplos/explosion7/explosion1a.gif
drawmethod scale 1.1 1.1
frame data/chars/misc/Xplos/explosion7/explosion1a.gif
drawmethod scale 1.2 1.2
frame data/chars/misc/Xplos/explosion7/explosion1a.gif
...
The white box didn't shows or I think it shows (by just smalls milliseconds) when I use "if frame" but without that, the white box didn't appear, I also need that the white box fade out slowly.
What should I do? does anyone has a script for do it? or It's better do it with a white sprite image
----------------------------
Besides, does anyone know how to set falling knocked down entities speed and height with scripts? I can do it with "dropv" and the attack box, but I just wonder if I can do it without it.
Thanks