Hi there

Ok - my last post wasnt very clear

Basically I am making a tile game and I have created the level in an editor
that I made.

http://www.thinkyourewasted.com/Game5.htm

http://www.thinkyourewasted.com/SonicEditor4.htm

The game screen is composed of 32 by 15 tiles (each 16 by 16)

Now I have a character that is about 32 by 32 that I want to "move" around
the level. Now the way I have it is the character stays in the one position
and the background scrolls.

I have a list of all the values for each tile in the scrolling background.

i.e 0 = Bg Tile (No Affect on character)
    1 = Solid Tile (Character is stopped by these tiles)

My problem is I am not sure how to detect when the character is hitting a
solid and to stop him. The problem is made more difficult by the fact I want
him to move at different speeds.

What is the best way to do this. I can't use the characters loc values
because he doesn't change position. And as the character is 2 tiles high I
need to check more than one destination tile.

Is it best to use the rect of the character and somehow try to detect what
tiles this will intersect after a movement.

I have been stuck on this all weekend and it is preventing me continue with
the game so any help would be so so appreciated.



Desperate in need of some help to continue


Paul



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to