View Single Post
 
Old 05-31-2013, 07:34 AM
vestais vestais is offline
Newcomer
 
Join Date: May 2013
Posts: 1
Default Problem with collision detection

I'm a beginning programmer working on an assignment for a programming class I'm taking. We are expected to make a small game of any kind in VB 2008. My game idea was to make a maze where the player moves a character around and "picks up" objects. The problem is that I'm having a lot of trouble making sure the picture box with the little character in it can't touch the walls. I've looked online in a lot of different places, tried to make the maze walls out of picture boxes, labels, and rectangle shapes, and tried multiple methods of collision detection, but nothing seems to work and I can always move the picture box either in front of or behind the walls.

I feel like I'm missing some important knowledge not present in collision detection tutorials I've been looking at because it's assumed that I know it already. Is someone willing to provide a small bit of code that can help me out, or help me know what I'm doing wrong? I can post the code I have so far if needed!
Reply With Quote