Jump to content

Invisible sprites ignore collision


KevinnFtw
 Share

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

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...