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.

AppGameKit Classic Chat / GetObjectInScreen(index), GetSpriteInScreen(index)??

Author
Message
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 3rd Jan 2017 18:30
3D objects have GetObjectInScreen(index).

Is there an equivalent command to test if a sprite is on screen?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 3rd Jan 2017 23:06 Edited at: 3rd Jan 2017 23:41
GetSpriteInBox
getvirtualwidth
there are also commands to get the outer area where normal the black borders are.
outer screen area can made visible with setscissors command.
else you can make a simple function with if then
so see if pos. is between min and max for x and y dimension.

also look this
ScreenToWorldX ( x )
ScreenToWorldY ( y )
WorldToScreenX ( x )
WorldToScreenY ( y )
AGK (Steam) V2.0.22 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12)
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 4th Jan 2017 03:15
Quote: "WorldToScreenX ( x )
WorldToScreenY ( y )"

Thanks exactly what I was looking for.
Thank you sir!

Login to post a reply

Server time is: 2024-09-29 21:20:00
Your offset time is: 2024-09-29 21:20:00