Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,499 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to display a pause screen? #95229
10/21/06 13:22
10/21/06 13:22
Joined: Sep 2005
Posts: 42
SusanJ Offline OP
Newbie
SusanJ  Offline OP
Newbie

Joined: Sep 2005
Posts: 42
Hi,

I use this piece of code someone gave me to pause my gameplay:

function pause()
{
if(freeze_mode == 2)
{
freeze_mode = 0;
}
else
{
freeze_mode = 2;
}
}
on_p = pause;

How can I alter that code so it will display a picture on the screen when the game is paused please?

Thank you x.

Re: How to display a pause screen? [Re: SusanJ] #95230
10/21/06 13:29
10/21/06 13:29
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
bmap pscbmp = <file.ext>;
panel psc
{
pos_x=25;
pos_y=25;
bmap=pscbmp;
}

function pause()
{
if(freeze_mode == 2)
{
freeze_mode = 0;
psc.visible=off;
}
else
{
freeze_mode = 2;
psc.visible=on;
}
}
on_p = pause;


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