Results 1 to 2 of 2

Thread: Creating "walls" on a game!! Please help!!

  1. #1
    Guest
    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.

  2. #2
    Junior Member
    Join Date
    Aug 1999
    Location
    scotland
    Posts
    25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width