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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (dr_panther), 1,264 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entity position #352602
01/04/11 18:33
01/04/11 18:33
Joined: Jan 2009
Posts: 57
Slovakia
wolodo87 Offline OP
Junior Member
wolodo87  Offline OP
Junior Member

Joined: Jan 2009
Posts: 57
Slovakia
Hello,
how could I get position of the entity according to screen (not world)? Something like pos_x/pos_y for panels.
I want to attach panel to each moving entity which will move with it.
Or is there a better way to make strategy-like health or info bars for entities?

Re: entity position [Re: wolodo87] #352603
01/04/11 18:41
01/04/11 18:41
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Did you look in the manual?

Please, do it next time wink


vec_to_screen wink

Re: entity position [Re: wolodo87] #352604
01/04/11 18:42
01/04/11 18:42
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
'vec_to_screen'/'rel_to_screen' are what you need laugh The manual has an example on attaching a panel to an entity.

Re: entity position [Re: DJBMASTER] #352607
01/04/11 18:53
01/04/11 18:53
Joined: Jan 2009
Posts: 57
Slovakia
wolodo87 Offline OP
Junior Member
wolodo87  Offline OP
Junior Member

Joined: Jan 2009
Posts: 57
Slovakia
yes, i did, i always first look in the manual, but sometimes i do not know what keyword to search for.
Anyway, thanks for help laugh


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