Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, 1 invisible), 3,371 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 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