Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ozgur), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | 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