KevinnFtw

Invisible sprites ignore collision

Recommended Posts

Hey guys,

 

 

In my game I hide some sprites by setting their visible setting to false.

Problem is, my collision detection still detects if these invisible sprites are getting hit.

 

I would like to know how I can make the collision detection ignore them.

 

Recently I've seen a option on these forums which was something like sprite.collision = false.

I think it was an option to ignore the collision of a certain sprite.

 

Too bad I can't find that post or option anymore, so that's why I'm making a new post about it.

 

Hope anyone can help me, otherwise I'll have to write my own detection for just visible sprites but enabling some kind of option would be much easier.

 

 

Thanks,

Kevin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.