>if MyCharacterPositionX+MyCharacterWidth "corresponds to a tile with
an impassable object" then
>if MyCharacterPositionX+MyCharacterWidth>=ObjectPositionX then -> do
not allow movement
>Analog solutions would apply for right to left and up-down movements,
always checking carefully >when you need to add the widht and/or height
of the objects.
We'll I've tried that. I do have something er..um "working". When the
character is just walking around it works just fine.
However when running the character can get stuck a bit in to the
"object". This only happens when going right or down
and it doesn't always happen. There's some fine points I don't know or
understand..yet.
>But perhaps the best solution for you would be to use a Sprite Surface.
Well I've thought about that. The only thing is that SS is stuck at
64x64 tile size but
my tiles are 32x32. I wish SS had a property or something that would let
you set the tile size.
Joe said I just need to draw 4 of my tiles for 1 of SS tiles and showed
me some code but I tried to do it but
it didn't work right.
I may just have to go back to SS.
Thanks
Eric
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|