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 Professional Discussion / collision problem

Author
Message
Soundbox
22
Years of Service
User Offline
Joined: 30th Nov 2003
Location:
Posted: 30th Nov 2003 18:20
Hey,
I have also posted this on the newcomers section, but since nobody replied I thought I could try to see if i'm more lucky here.

I'm having a collision problem, wich I hope you can help me with.
I'm making a bomeberman clone, so I made some sort of a maze an saved it as level1.x But now my problem is that my player isn't able to walk inside level1 (inside the maze). There seems to drawn a collision box al around my maze, but I only want collision at the walls. I hope you understand my problem here is my code:
I really hope anyone can help me with this.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Nov 2003 19:23
Yep, it's because you are inside the object.

Why not try kensupens code in the code snippets : http://developer.thegamecreators.com/?m=forum_view&t=10315&b=6

It uses the INTERSECT OBJECT function to provide collision with walls.
Jaze
22
Years of Service
User Offline
Joined: 20th Nov 2003
Location: Connecticut, USA
Posted: 5th Dec 2003 12:25
Way cool - I love that code snippet - I was making myself sick with it .. sometimes simple is better than fancy - hehe - I'd walk to the 2nd floor edge..look down and step off - fps were very fast and the speed of the fall seemed realistic enough for me - I loved that snip - that may be a keeper Kudos to who? KenSupens? Kudos!
Jason

-=/Jaze/=-

Login to post a reply

Server time is: 2026-07-26 20:16:51
Your offset time is: 2026-07-26 20:16:51