Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to add a Splash Screen? #91493
09/25/06 21:28
09/25/06 21:28
Joined: Sep 2006
Posts: 5
T
TKE_Super_Dave Offline OP
Newbie
TKE_Super_Dave  Offline OP
Newbie
T

Joined: Sep 2006
Posts: 5
I would like to add a splash screen to the begining of my game, however I have no clue how to do that. Could someone walk me through how to do it? Thanks.

Re: How to add a Splash Screen? [Re: TKE_Super_Dave] #91494
09/25/06 21:49
09/25/06 21:49
Joined: Oct 2003
Posts: 2,628
IL,US
FeiHongJr Offline
Expert
FeiHongJr  Offline
Expert

Joined: Oct 2003
Posts: 2,628
IL,US
You should download the c-script workshops on the download page.

define the bmap and panel
} Code:
 
bmap Splash_screen = <Splash.bmp">;// Name of your splash screen image

Panel Splash_pan
{
bmap = Splash_screen;// Assigns the image to this panel
pos_x = 0;// X&Y pos that panel will start from upper left corner,.
pos_y = 0;
flags = refresh;//Set flags... Look in manual for what the different flags are.
}


Then in your main function do something like this.
Code:
 
Function Main()
{
Freeze_mode = 1; //Freeze all functions.
Splash_pan.visible = on;// Make splash screen visible.
wait(32); // Wait 32 ticks... Could possibly change to sleep(3); or however long you want
Splash_pan.visible = off;// Turn the splash screen off
level_load("your_level.wmb");// Load level
wait(3);// Wait 3 ticks
Freeze_mode = 0;// Unfreeze game

// Call further functions here.
}



Havent tested it but think it will work. Tho has been awhile since ive scripted anything.

Last edited by FeiHongJr; 09/25/06 21:50.

http://www.freewebs.com/otama_syndicate/index.htm - Each master to his own technique.

- Not me said the bee, Nor I said the fly.
Re: How to add a Splash Screen? [Re: FeiHongJr] #91495
10/01/06 15:03
10/01/06 15:03
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline
Expert
Error014  Offline
Expert

Joined: Jul 2002
Posts: 3,208
Germany
For the record: wait(x) doesn't wait x ticks. Back in the day, waitt (yeah, with two "t") waited x Ticks (1/16 of a second). wait with one t waits x frames (when x is positive). You better either use wait(-3); to wait 3 seconds or use the oldfashioned sleep(3); - before you load your level, you'll have an extremely high framerate, so you probably wont see your splashscreen. So simply use sleep or a negative number and wait


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1