Screen flashing

betterbold

Active member
Now, I use the way entitys spawn a white object (BIG SIZE) ... for game's screen flashing ...
Could you tell me the other way, if you know that ?  :D
 
This is a normal way and most people do it that way.
Another way is to draw a white box(scripting), this may be more flexible but in most cases there's no necessary IMO.
 
If you go the non scripted route, it's best to use a type panel entity.  You won't have trouble getting to cover the screen this way.  Summon it from the player or w/e when you need it, just make sure to set the flag so it spawns relative the screen. 

Code:
summonframe {frame} {x} {z} {a} {relative}
~{relative} determines where the other entity is spawned.

    0, count from the spawner. Spawned entity will face same direction with the spawner.
    1, count from screen offset.

Basic setting for a screen entity.

Code:
name      Whiteflash
type      panel
speed   10
alpha      2
facing   1
setlayer   999
lifespan 2

 
Back
Top Bottom