Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 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 | 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