i have made walls for my 2d topdown view game by using pictureboxes.... but the player1 must move in the map but when it hits one of the walls it must not pass through.... the .Top .Left .Right .Bottom do not work as they take the whole forms width or height....:D any ideas how to do this?

ok i have managed to solve this problem by adding that it must be in the same width with the wall.....

BUT my game is supposed to be 2 player but when one player presses a key the other one stops moving... any ideas on how to move both players at the same time?

Threading is your friend. Use Threads.

Thank you,
Ken

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.