Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dxt

Pages: [1]
1
Graphics / Overlapping Array not working?
« on: March 08, 2012, 05:00:26 pm »
I don't know whats wrong with your code ( I'm not good in reading someone elses code btw) but a an easy method to check if sprites are overlapping is using their intersect method.. i.e.

Code: [Select]

sprite1.GetGlobalBounds().Intersects( sprite2.GetGlobalBounds() )


which returns true if they are overlapping

Pages: [1]
anything