Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
log in screen #250691
02/09/09 10:44
02/09/09 10:44
Joined: Jan 2009
Posts: 7
Palestine
N
Naila Offline OP
Newbie
Naila  Offline OP
Newbie
N

Joined: Jan 2009
Posts: 7
Palestine
Hi Everybody,

Does anybody know how to create "log in" screen at the beginning of the game, or at least something requires the player to enter a name, age..etc..

Thankx

Naila

Re: log in screen [Re: Naila] #250695
02/09/09 11:03
02/09/09 11:03
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
REMOVED.

Last edited by Cowabanga; 02/09/09 16:23.
Re: log in screen [Re: Naila] #250697
02/09/09 11:26
02/09/09 11:26

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Start the game/app in windowed mode and use a PANEL to gather the needed informations.
Afterwards you can hide thisv PANEL and (if needed) switch to fullscrenn...

Re: log in screen [Re: ] #250702
02/09/09 11:53
02/09/09 11:53
Joined: Jan 2009
Posts: 7
Palestine
N
Naila Offline OP
Newbie
Naila  Offline OP
Newbie
N

Joined: Jan 2009
Posts: 7
Palestine
ok, but how can I create a box that the user can type in!

Re: log in screen [Re: Naila] #250731
02/09/09 14:48
02/09/09 14:48

M
mercuryus
Unregistered
mercuryus
Unregistered
M



use such a script (lite-c) and such a images (name_pan.pcx):
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
BMAP*		bmp_get_name	= "name_pan.pcx";
STRING* 	str_name			= "#25";

PANEL* pan_getname = {
	layer=1;	
	bmap=bmp_get_name;
	flags=VISIBLE;
}

TEXT* txt_getname = {
	layer=2;
	pos_x=150;
	pos_y=300;	
	strings=1;
	string=str_name;
	font="Arial#50b";
	flags=VISIBLE, OUTLINE;
}
// --------------------------------------------------------------------------------------------
function main(){	
	video_set(640, 480, 32, 2);
	inkey(str_name);	
}


Re: log in screen [Re: ] #250947
02/10/09 21:49
02/10/09 21:49
Joined: Jan 2009
Posts: 7
Palestine
N
Naila Offline OP
Newbie
Naila  Offline OP
Newbie
N

Joined: Jan 2009
Posts: 7
Palestine
Thanks alot, it worked just fine smile


Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | 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