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 / Help With Sprite Visibility and Collisions

Author
Message
Game Warden
14
Years of Service
User Offline
Joined: 12th May 2010
Location: Union, MO
Posted: 4th Feb 2012 08:04 Edited at: 4th Feb 2012 08:06
I've been coding a paddle game and cannot seem to figure out how to turn off collisions of sprites that have a visibility of 0. I have tried setting the GetSpriteCollision command to 0 but that didn't seem to solve my issue. Can anyone help? I can provide more info if needed. Thanks in advance.

Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 4th Feb 2012 08:15 Edited at: 4th Feb 2012 08:15
You could try a preliminary check to see if they are visible first. e.g



DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 4th Feb 2012 19:23
Yes that is what I normally do, check if it is visible, then if it is hit. or you could move the hidden sprites way off screen but the visibility check is the best bet. I used it for the shooter in my sig below.

Game Warden
14
Years of Service
User Offline
Joined: 12th May 2010
Location: Union, MO
Posted: 5th Feb 2012 09:04
OK cool I will give that a go. Thank you guys

Login to post a reply

Server time is: 2024-11-23 01:31:57
Your offset time is: 2024-11-23 01:31:57