Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
Collision Detection - ADVANCED - Glitchy
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 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!
Attached Files
File Type: a2w CounterStrike_Ice.a2w (534.4 KB, 201 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
Fritz
Senior Member
 
Fritz's Avatar
 
Status: Offline
Posts: 105
Join Date: Sep 2010
Default 04-07-2011, 03:59 PM

Move at a diagonal and your method is screwed.


Working on a new Futuristic FPS game

http://alice.org/community/showthread.php?t=6734
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 04-07-2011, 04:34 PM

Quote:
Originally Posted by Fritz View Post
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.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 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.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 04-07-2011, 06:54 PM

Quote:
Originally Posted by x2495iiii View Post
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:
Attached Files
File Type: a2w CounterStrike_Ice (x2495iiii).a2w (2.10 MB, 29 views)


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
reaper1395
Senior Member
 
reaper1395's Avatar
 
Status: Offline
Posts: 53
Join Date: Nov 2010
Default 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


XBL gt: R3APER 359
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.