fade to black or white ?

jeet

New member
Id like to make cutscene that disapear slowly , not instant , is there a way to do this or im forced to create many gift darker and darker until it get black?

the second question is , this time, about the game itself, i want to make a big explosion effect, that gradually make the screen totally white , and get it back to normal after 1 or 2sec, is there a way to do this with a command?
 
You can easily do this with drawmethod channel. Just spawn the entity when you need the effect. Here is an example from my castlevania game that flashes the entire screen white and fades:

http://webmup.com/3d1f3/

Code:
name	whitescreen
type	none
facing 1
setlayer 9999999999
antigravity 100
animationscript  data/scripts/script.c
palette	data/scenes/white.png	

anim	idle
	loop	0
	delay 5	
	offset	160 120
	drawmethod scale 8
	drawmethod alpha 6
	drawmethod channel 0.1
	frame	data/scenes/white.png
	drawmethod channel 0.2	
	frame	data/scenes/white.png
	drawmethod channel 0.3	
	frame	data/scenes/white.png
	drawmethod channel 0.4	
	frame	data/scenes/white.png
	drawmethod channel 0.5	
	frame	data/scenes/white.png
	drawmethod channel 0.6
	frame	data/scenes/white.png
	drawmethod channel 0.7	
	frame	data/scenes/white.png
	drawmethod channel 0.8	
	frame	data/scenes/white.png
	drawmethod channel 0.9	
	frame	data/scenes/white.png
	drawmethod channel 1.0	
	drawmethod alpha 0	
	delay 60		
	frame	data/scenes/white.png
	delay 5		
	drawmethod alpha 6	
	drawmethod channel 0.9
	frame	data/scenes/white.png
	drawmethod channel 0.8	
	frame	data/scenes/white.png
	drawmethod channel 0.7	
	frame	data/scenes/white.png
	drawmethod channel 0.6	
	frame	data/scenes/white.png
	drawmethod channel 0.5	
	frame	data/scenes/white.png
	drawmethod channel 0.4
	frame	data/scenes/white.png
	drawmethod channel 0.3	
	frame	data/scenes/white.png
	drawmethod channel 0.2	
	frame	data/scenes/white.png
	drawmethod channel 0.1	
	frame	data/scenes/white.png
	drawmethod channel 0.0	
	frame	data/scenes/white.png
	@cmd	suicide
	frame	data/scenes/white.png

You could just put a fade in your gif too, though it would probably look better if you used a webm instead.

[attachment deleted by admin]
 
Thx a lot i was searching for this for long time :) gonna try it now


edit: worked perfectly ty again, btw is there a command similar to this but for cutscenes?
 
Ok, the most important was the ingame white screen anyway, but now i have another problem, the feature u explained works only on the PC version, on the psp the white screen is ignored, and i think i have the latest PSP version of openbor... is there another way? im beginner and i dont use scripts yet, but i really need this feature so i can try anything ;)
 
I found the solution, the latest build of the psp dont understand the " channel" command, but instead it works with " channelR" channelG" and "channelB" all together with the same values doest the same effect, so the problem is solved
 
The PSP version of OpenBOR is just buggy - no one's seriously worked on it for years. :(

I actually got a PSP a few months ago - maybe someday I'll get around to looking at whether "channel" doesn't work.
 
Ive found a psp build more recent than others, i think a lot of people are missing it because its not mentionned that the build include the psp version, and this one seems to not be buggy like the old ones, about the Channel command i noticed in the wiki that only channelr g and b exist, it mean the " channel" is a recent add on, that the psp doesnt have since there is no update anymore, but still the build i got is very clean its the v3 4082 , not the newest but better than the others known for this platform
 
Back
Top Bottom