PDA

Click to See Complete Forum and Search --> : Creating "walls" on a game!! Please help!!


Apr 9th, 2000, 04:56 AM
Okay, I'm making a game that's suppose the have walls
(kind of like chip's challenge)

Say if there's a map that looks like this. Where 1 is on
the map, it's a wall on the game. Where 0 is on the map,
it's a blank space.

1111111111
1000000001
1000000001
1111000001
1000000001
1000000001
1111100001
1000000001
1000000001
1111111111

Okay, when the level is loaded, I load the pictures from
an image, creating Arrays for each box. Displaying them is
all fine and dandy but what I need to know is HOW do I
prevent the user (imgUser) from walking through the
walls? The walls are imgWall(Index). The player's movement
is not a fixed movement. It's distance depends on how long
you how the direction key for.

If you do not understand the question please say so and
I will try to clear myself up.

ron hunter
Apr 9th, 2000, 07:23 PM
try this site

http://www.goodnet.com/~andrewa/vbasic/prometheus/prometheus.htm