Hello,
I'm very new to Visual Basic and programming in general. I'm trying to create a miniature pacman game for an assignment however, I have run into a roadblock. Collision Detection. I am trying to make it so that the pacman can't just go throught tthe walls. I have got the collision detection for the edges of the form but now I'm trying to get it working with the walls inside the game. However, the roadblock is that I have decided to create a pircture box for each wall. I then put them all in an array. Here comes the roadblock, my pacman is declared as a rectangle and not as a picturebox. So I can't use the .IntersectsWith code which is the only way I found on the internet to do collision detection. Any help would be appreciated. BTW this is a lot of fun.:thumb:
Thanks!
I'm very new to Visual Basic and programming in general. I'm trying to create a miniature pacman game for an assignment however, I have run into a roadblock. Collision Detection. I am trying to make it so that the pacman can't just go throught tthe walls. I have got the collision detection for the edges of the form but now I'm trying to get it working with the walls inside the game. However, the roadblock is that I have decided to create a pircture box for each wall. I then put them all in an array. Here comes the roadblock, my pacman is declared as a rectangle and not as a picturebox. So I can't use the .IntersectsWith code which is the only way I found on the internet to do collision detection. Any help would be appreciated. BTW this is a lot of fun.:thumb:
Thanks!