Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / how to see text in multiple cameras?

Author
Message
haliop
User Banned
Posted: 25th Apr 2010 20:57
lets say i have a boss in my map
the boss has a text of his name hovering above him

so i do

if (ObjectInScreen(BOSS))
{
dbText(dbObjectScreenX(BOSS),dbObjectScreenY(BOSS),Boss_Name);

}
this works good , but
i have 2 cameras
half screen mode
and i have only one text displayed on current camera only when it should be on both cameras....

now , when i switch inside the Main loop between Cameras
it do it very fast and the text start blinking , cause one time its here and the other its there

how can i make them constant?
can i do that?
Cetobasilius
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location: Mexico
Posted: 25th Apr 2010 21:57
yes, you can do that, but not with dbObjectScreenX or Y...
create a plane, texture it with the name, and place it over the bossĀ“s head, and create a billboard effect, but you will have think on how to make it possible for two cameras yourself. the normal billboard effect can be achieved with



if you do not know what a billboard effect is, then i suggest you play doom 1 or google it

hi
haliop
User Banned
Posted: 25th Apr 2010 23:12
nice , but...
what if im way far from the boss , and the boss is behind a wall
i still want to see that name..
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 26th Apr 2010 00:30
Look at the zdepth commands, I think you can get it to always show no matter what its behind.

haliop
User Banned
Posted: 26th Apr 2010 09:14
ok i will check it , ty all.!
haliop
User Banned
Posted: 26th Apr 2010 12:32
CetoBasillius
Matty

TY SO MUCH.
you just made my week much more eaiser and progressive.
ty again.!!!
Cetobasilius
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location: Mexico
Posted: 26th Apr 2010 12:34
im really glad to hear that

hi

Login to post a reply

Server time is: 2024-07-07 01:19:48
Your offset time is: 2024-07-07 01:19:48