Gamestudio Links
Zorro Links
Newest Posts
Missing PnL files in zOpen child processes
by DonQuijote. 10/19/26 11:11
ZorroGPT
by TipmyPip. 10/15/26 08:28
Alternative to Stooq for Zorro S
by Petra. 10/14/26 07:04
Stooq now requires an API key
by cwford. 10/08/26 23:27
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (vince, AndrewAMD, ratz, Samed, VoroneTZ), 9,122 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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 | 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