123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|397|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz Max -> Tile Map Collision Help

Thu, 21 Oct 2010, 12:58
Enigma
Hi,

I'm having problems working out how to do player - tile map array collisions. I just can't seem to get my head around it and wondered if there was anyone that could help me out?

I have uploaded a simple example of a game I'm working on, can someone please take a look at it and help me understand how collisions work?

You can get the code from the following link. www.retroreloaded.com/russ/collisionhelp.zip

I've had a go (which you will see) but didn't get very far with it. If someone has got time to look at it, can you keep it simple and try to explain what you are doing?
Thu, 21 Oct 2010, 21:32
Erebel55
Sorry, I don't have time to get into the code..and i'm not at my home computer to paste any of my codes.

But here is a quick linky..with some example code. Not sure if you've seen it.

www.blitzbasic.com/Community/posts.php?topic=86287

Hopefully, someone else can answer it better.

-=-=-
Lava Monkey
https://play.google.com/store/apps/details?id=com.lvm.lavamonkey
Fri, 22 Oct 2010, 02:45
Jayenkai
Additionally, see here, where WarOffice has a similar issue.


-=-=-
''Load, Next List!''
Fri, 22 Oct 2010, 02:55
waroffice
Morning, I have been working with tile map collisions for a while and have a nice solution.

Im not at home too and will look at your code when i get more time.

In a nutshell i have the tile data store if you can walk off the tile in a certain direction. I then check if the player can walk off that direction, then render the player close to the edge of the tile.

While i was looking for my post Jay seems to have posted it