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
0 registered members (), 18,767 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
Text Code... #86111
08/15/06 02:26
08/15/06 02:26
Joined: Apr 2006
Posts: 37
Swiss
M
mfuada Offline OP
Newbie
mfuada  Offline OP
Newbie
M

Joined: Apr 2006
Posts: 37
Swiss
Hey i wanna ask do u know any code to input text?
I mean like a text for player name beneath his healthbar...
thanx..
btw if this question is already been discused..i'm sorry and can u give me the link.......

Re: Text Code... [Re: mfuada] #86112
08/15/06 03:21
08/15/06 03:21
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
Use inkey to do this. To display the text, you need a text object. Look these up in the manual. If the health bar moves around on the screen, you can set the position of the text object to be relative to the health bar like this:

player_name.pos_x = healthbar.pos_x; // same X position
player_name.pos_y = healthbar.pos_y + 96; // 96 pixels below the health bar - adjust as needed


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials

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