|
help splash screen Displaying 1-11 of 11 total.
1
relaxis
|
Hi, I want to make an animated splash screen of my own like on sully but I can't find the code. can someone teach me how to do this?
Posted on 2006-07-09 14:39:07
|
mcgrue
|
Which part?
Posted on 2006-07-09 15:37:33
|
Omni
|
As for making your own splash screen, you just have to have a bit of imagination. Maybe use RotScale() to rotate your logo in, or use BlitLucent() to gradually fade in your logo with a while() or for() loop.
Posted on 2006-07-09 15:59:39
|
Overkill
|
This features a fancy rotating title effect! But it's a Windows-only custom build. Features an epic title theme by troupe, from The Forgotten King.
http://ovk.actionsketch.com/stuff/verge3/ovk_special_title.zip
Posted on 2006-07-09 16:06:40
|
Omni
|
....What's so special about a rotscale that it required a custom build?
Posted on 2006-07-09 16:24:53
|
Overkill
|
Well, int GetLucent();
TransparencyMask(int image); // For some alphamap stuff that I ended up removing later.
void RectHGrad(int x, int y, int x2, int y2, int color, int color2, int dest);
void RectVGrad(int x, int y, int x2, int y2, int color, int color2, int dest); These played a part.
Posted on 2006-07-09 16:59:52 (last edited on 2006-07-09 17:01:02)
|
Omni
|
But...I thought these functions were now in the latest official bleeding-edge build?
Posted on 2006-07-09 20:39:12
|
relaxis
|
ok, this is how i want to do it,
1. int splash1=loadimage("splash1.gif")
blit(splash1)
ok, so here the image is blitted onto the screen. I can't get it to stay there! it blits for a click and then the program ends.
Ok so I add a loop - but which one? a FOR loop or a WHILE loop?
how do I get the image to fade out and another to fade in?
How do I make a loading screen?
When the title screen comes up, how do I make the menu/option selector? that's the kind of tutorial that I talked about before. I'm not asking for someone to program my game for me, I just need to be shown how to do an example of something so that I can pick up the language better. I understand the various different calls and functions but i don't understand what has to be put together to achieve whichever result.
Thank you for your patience
Posted on 2006-07-09 20:52:06
|
Overkill
|
Not tested, should work, pretty much.
void Autoexec()
{
int splash_image = LoadImage("splash1.gif");
// This timestamp keeps track of when we started,
// so we can use this to figure out how much time has
// elapsed since the beginning.
int splash_timestamp = systemtime;
// As long as less than 2 seconds pass...
while (systemtime - splash_timestamp < 200)
{
// The black background
RectFill(0, 0, ImageWidth(screen), ImageHeight(screen), 0, screen);
// Gradually have the image become
// more opaque over time.
SetLucent(100 - (systemtime - splash_timestamp));
// Draw our image
Blit(0, 0, splash_image, screen);
// Restore default lucency.
SetLucent(0);
// Refresh our screen.
ShowPage();
}
}
Posted on 2006-07-09 21:48:18 (last edited on 2006-07-09 21:50:10)
|
Overkill
|
Quote:Originally posted by Omni
But...I thought these functions were now in the latest official bleeding-edge build?
The latter two are in the SVN build, but not an official build. The former two weren't added to the SVN.
Posted on 2006-07-09 21:51:49
|
relaxis
|
ok here's the code so far -
void Autoexec()
{
int splash_image = LoadImage("splash1.gif");
// This timestamp keeps track of when we started,
// so we can use this to figure out how much time has
// elapsed since the beginning.
int splash_timestamp = systemtime;
// As long as less than 4 seconds pass...
while (systemtime - splash_timestamp < 400)
{
// The black background
RectFill(0, 0, ImageWidth(screen), ImageHeight(screen), 0, screen);
// Gradually have the image become
// more opaque over time.
SetLucent(100 - (systemtime - splash_timestamp));
// Draw our image
Blit(0, 0, splash_image, screen);
// Restore default lucency.
SetLucent(0);
// Refresh our screen.
ShowPage();
//image fades out
SetLucent(100 - (systemtime - splash_timestamp));
freeimage("splash_image");
}
//spawn naked entity on the page (bottom offscreen) and move it to screen centre
int intro_time = systemtime;
while (systemtime - splash_timestamp < 200)
{
Rectfill(0, 0, Imagewidth(screen), ImageHeight(screen), 0, screen);
int naked_entity=entityspawn(10,7, "windn.chr");
entitymove(naked_entity, "f2");
Setlucent(100 - (systemtime - splash_timestamp));
setlucent(0);
//play intro song
int intro=loadSong("mysong.mp3");
playsong(intro);
}
OK, Here I want to get all the sprites clothes to float on screen from the side and cover the sprite (I guess I would use HOOKENTITYRENDER but am not sure exactly how...). She/he then steps into a position on the screen until all the sprites are in a line, during this time, the background is going white. When they are all in line, the sprites flash and their full manga images come up on screen in their place.
then
the title screen comes up with a flashing - press start.
controls for the GP2X are calibrated.options to start game, continue game or credits. Also want to add feature so that the introduction animation can be skipped by pressing "a" or "start" but the music keeps playing....
Posted on 2006-07-10 07:39:32
|
Displaying 1-11 of 11 total.
1
|
|