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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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 on object #292951
10/08/09 04:40
10/08/09 04:40
Joined: Nov 2008
Posts: 26
France
H
Hirogens Offline OP
Newbie
Hirogens  Offline OP
Newbie
H

Joined: Nov 2008
Posts: 26
France
Hi,

How to draw text on Object ?

I have a Plate with glass shader (lime color)
(yes is a screen)
An I like write text on it

regards


A7 Commercial License.
http://www.wormhole-the-game.com

AMD64 6000+, GTX 280 2GB, 4 GB Ram, Seven
Re: Text on object [Re: Hirogens] #293052
10/08/09 23:03
10/08/09 23:03
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!
Quote:

Yes is a screen


Look up inkey to type text from the keyboard on a panel (screen).


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Text on object [Re: Ottawa] #293088
10/09/09 09:20
10/09/09 09:20
Joined: Nov 2008
Posts: 26
France
H
Hirogens Offline OP
Newbie
Hirogens  Offline OP
Newbie
H

Joined: Nov 2008
Posts: 26
France
hi

is not a panel.

the plate is an Entity.....


A7 Commercial License.
http://www.wormhole-the-game.com

AMD64 6000+, GTX 280 2GB, 4 GB Ram, Seven
Re: Text on object [Re: Hirogens] #293108
10/09/09 11:38
10/09/09 11:38
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
i havent realy the time to explane how it needs to be done

you need to create a panel with digits

Code:
PANEL* plate_text =
{
	digits(0,0,"your standaard text %s",*,1,you_string);
	flags = SHOW | OVERLAY;
}



then you while need to atach it to your entity

Code:
action plate()
{
	plate_text.size_x = 256;//size of the bitmap of your entity
	plate_text.size_y = 64;//size of the bitmap of your entity
	plate_text.target_map = bmap_for_entity(my,0);
}



NOTE !!!! reset the target_map to null when new lvl needs to be loaded


"empty"
Re: Text on object [Re: flits] #293309
10/10/09 17:17
10/10/09 17:17
Joined: Nov 2008
Posts: 26
France
H
Hirogens Offline OP
Newbie
Hirogens  Offline OP
Newbie
H

Joined: Nov 2008
Posts: 26
France
Thank you,

I go test this now^^

regards


A7 Commercial License.
http://www.wormhole-the-game.com

AMD64 6000+, GTX 280 2GB, 4 GB Ram, Seven
Re: Text on object [Re: Hirogens] #293382
10/11/09 06:56
10/11/09 06:56
Joined: Nov 2008
Posts: 26
France
H
Hirogens Offline OP
Newbie
Hirogens  Offline OP
Newbie
H

Joined: Nov 2008
Posts: 26
France
Hi,

I have test this example...

but the text is on Backgroung not on my object.


A7 Commercial License.
http://www.wormhole-the-game.com

AMD64 6000+, GTX 280 2GB, 4 GB Ram, Seven
Re: Text on object [Re: Hirogens] #293403
10/11/09 10:34
10/11/09 10:34
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
try if it has somthing to do with the shader

check if the action is attachted
check if you got the mdl skinnend
try use bmap_for_entity(my,1); instead
check if you dont set the plate_text.target_map to NULL
check if you got the latest gs version

if it still doest work i will upload a example

flits


"empty"

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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