View Single Post
Old 06-29-2009, 10:17 AM   #7 (permalink)
Netrix
Purger of Ignorance
zB Programmer
Retired Staff
Expert Zuner
 
Netrix's Avatar
 
Join Date: Jun 2008
Location: In my own world
Posts: 2,805
Netrix is a name known to allNetrix is a name known to allNetrix is a name known to allNetrix is a name known to allNetrix is a name known to all
Send a message via MSN to Netrix
Default

You could also create Rectangles that have the same positions and sizes as the relevant textures and use the built-in function to determine if they collide or not. Though, this is limited in that it only works for rectangles.

Code:
Rectangle player, thing;
 
//Initalize the positions and sizes.
 
Boolean collides = player.Intersects(thing);
__________________
"Against logic there is no armor like ignorance." - Laurence J. Peter

Solitaire for your Zune! http://www.zuneboards.com/forums/dow...ne-v2-0-a.html

Zune Book Reader! http://www.zuneboards.com/forums/app...ew-thread.html




Netrix is offline   Reply With Quote