View Full Version : Collision Detection - ADVANCED - Glitchy

04-05-2011, 05:40 PM
I made this thing last year with plans to make it into a whole first person shooter minigame, but all I got through was the collision detection part. I used a new theory of collision detection at the time that worked wonderfully but took a lot of tweaking to get right (please if you are an amateur Alice programmer looking for a simple collision detection, DO NOT TRY TO RECREATE THIS!), it is very complicated and it basically splits the map into quadrants so that depending on where you are in the map, only the walls in that quadrant of the map will be activated for collision detection. I felt that this was the best way to prevent lag from all of the walls detecting at once, and it worked just as I had hoped.

If you want, you can take this map as it is now and do whatever you want with it, add guns and enemies if you want, whatever.

Also if you are good at programming and actually understand the collision detection I used, you can try to fix the problem of going backwards diagonally through some of the walls. I fixed a lot of the glitches going past walls, but diagonally backwards is the big one I didn't fix. I gave up on this a long time ago and forgot to post it, so here I am now making up for that.

Tell me what you think of the new collision detection method!

04-07-2011, 03:59 PM
Move at a diagonal and your method is screwed.

04-07-2011, 04:34 PM
Move at a diagonal and your method is screwed.

Yeah I explained that in my post. Diagonally forward should be fine in most areas, but diagonally backwards almost always lets you through.

04-07-2011, 05:57 PM
Well this looks familiar.

Excellent work as always, D. This is something Nintendo would do, making something excellent with humble resources.

This is also the kind of thing that'd make a perfect FPS. That is, if Alice were meant to handle that sort of thing.

04-07-2011, 06:54 PM
Well this looks familiar.

Haha its because you made a little game out of this a while back when I showed it to you exclusively. It was pretty good too, I'll post it here if anyone wants to see it.

This is just one example of a game you could make with this premade map:

05-02-2011, 01:51 PM
its cool but takes some time to get used to the turning system/ putting the arrow back to the center of the screen to stop turning

05-28-2011, 05:20 PM
This is the best collision thingy in alice ever made you rock!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

05-28-2011, 09:50 PM
Very nice Dameria. I can't believe I did not see this thread before..

07-17-2011, 05:21 PM
It's funny how the world is named Counterstrike_ice and the map is actually called fy_snow.And it is for player vs player only,not zombies.

God,i am such a nerd...