Gamestudio Links
Zorro Links
Newest Posts
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 (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Hearing?? #201104
04/06/08 23:52
04/06/08 23:52

M
Malice
Unregistered
Malice
Unregistered
M



I am writing a hearing script for a game ... How can I tell if a entity is on screen or not on screen? I only want to run event if the player hears the foot steps of a entity off screen? I'm sure there is something for this.

Thank you for your time and help
Malice

Re: Hearing?? [Re: ] #201123
04/07/08 05:24
04/07/08 05:24
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
You can use rel_to_screen for that.
cheers,

Re: Hearing?? [Re: tindust] #201229
04/07/08 17:17
04/07/08 17:17

M
Malice
Unregistered
Malice
Unregistered
M



Thanks didn't even know it was there .... Thank a lot

Re: Hearing?? [Re: ] #201514
04/09/08 17:36
04/09/08 17:36

M
Malice
Unregistered
Malice
Unregistered
M



rel_to_screen doesn't work at all unless I'm doing something wrong. IS there a way to run a function only if the entity is in the view. I've tried, rel_to_screen,rel_for_screen, and if (!(my.eflags&CLIPPED)){dosomething }//lite-C none of these work... Is there a command or should I ask for one in the Future thhread???


Thanks.Malice

Re: Hearing?? [Re: ] #201535
04/09/08 19:32
04/09/08 19:32
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
It's not rel_to_screen, you should use vec_to_screen. The ClIPPED flag should work as well. However, if an entities CLIPPED flag is set that does not mean the entity is behind or besides the camera. It can also have its INVISIBLE flag set or be to close to or to far away from the camera.


Always learn from history, to be sure you make the same mistakes again...
Re: Hearing?? [Re: Uhrwerk] #201546
04/09/08 20:04
04/09/08 20:04

M
Malice
Unregistered
Malice
Unregistered
M



Thank you vec_to_screen, is working...

Mailce


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