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.

Author
Message
KoolAid Man
15
Years of Service
User Offline
Joined: 25th Nov 2010
Location:
Posted: 25th Nov 2010 07:25
I can't get collision to work.. Can someone help?

thanks


It is I... OHH YEAHHH
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Nov 2010 17:27
This is just a suggestion, but it MIGHT be of good use if you put the collision checking INSIDE the main loop



TheComet

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 25th Nov 2010 18:22
If you put the collision in the main loop it still seems not to work, but I think it is working for the first box, just none of the others and not even the first box if you move around first(off the box and back on for instance), although that seems semi random too.
I would consider binning a lot of this and trying either some maths collision or maybe the intersect object command, which I think would do a better job.

http://s6.bitefight.org/c.php?uid=103081
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Nov 2010 19:14 Edited at: 25th Nov 2010 19:15
It still won't work because the collision checking code and player position processing is independent in your example. Here, I fixed it up a little for you



TheComet

KoolAid Man
15
Years of Service
User Offline
Joined: 25th Nov 2010
Location:
Posted: 28th Nov 2010 16:01
Thank you so much Comet!

Wait. What?

Login to post a reply

Server time is: 2026-07-21 12:50:00
Your offset time is: 2026-07-21 12:50:00