Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Collision problem

Author
Message
cloneddude
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location:
Posted: 3rd Nov 2003 19:40
This program shows a square which can move around a tile based environment, I’m having a little problem with collision.

Basically all the tiles which are printed after the collided tile act different to the ones before, its a bit hard to explain, so run the script if you think you'll be able help. I've been trying all sorts to try and fix it, but can seem to do anything to fix it.



The data files are three 16x16 bitmaps.

erm...
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 3rd Nov 2003 20:18
I don't really understand your problem
cloneddude
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location:
Posted: 3rd Nov 2003 21:48 Edited at: 10th Nov 2003 14:08
The player (an orange 16x16px square) moves around a 2d 20x20 tile based grid (the layout of the grid can be found at the bottem of the code). My aim for the collision is to stop the player from getting past the "1" tiles.



My problem is that when ever the player hits a "1" tile, all the tiles/images printed before the collided tile work as expected but all the tiles printed after the collided tile "jump about". Its one of those things that are really hard to explain.

erm...
cloneddude
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location:
Posted: 5th Nov 2003 22:10
by accident i think i have found away to fix it, allthough i have created anouther problem i don't think it will be as hard to fix.

erm...
cloneddude
21
Years of Service
User Offline
Joined: 29th Oct 2003
Location:
Posted: 9th Nov 2003 12:08 Edited at: 10th Nov 2003 14:09
didn't work

erm...

Login to post a reply

Server time is: 2025-05-21 17:43:30
Your offset time is: 2025-05-21 17:43:30