Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
collision detection
Old
ewg
Guest
 
Status:
Posts: n/a
Default collision detection - 04-15-2008, 06:34 PM

i've heard that the camera cant go through walls when your controlling it but when i added so i can move it with keys it went right through the walls.

btw, im using WASD to move.
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 04-15-2008, 07:04 PM

Quote:
Originally Posted by ewg View Post
i've heard that the camera cant go through walls when your controlling it but when i added so i can move it with keys it went right through the walls.

btw, im using WASD to move.
There are some circumstances where it won't go through a wall but it will sneak through the crack where two walls join. (See additional information at www.alice.org/community/showthread.php?p=4261)

Is that possibly what you saw?

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm

Last edited by DickBaldwin; 04-15-2008 at 07:06 PM. Reason: Update
   
Reply With Quote
Old
ewg
Guest
 
Status:
Posts: n/a
Default 04-15-2008, 09:01 PM

not exactly, i have the camera movement set to WASD and it just goes straight through objects. i know its not smooth moving but i just started alice in school last week, and me and my friends are ambitious on making a basic game or puzzle type thing.
Attached Files
File Type: a2w basic WASD movement.a2w (654.1 KB, 154 views)
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 04-15-2008, 09:14 PM

Quote:
Originally Posted by ewg View Post
not exactly, i have the camera movement set to WASD and it just goes straight through objects. i know its not smooth moving but i just started alice in school last week, and me and my friends are ambitious on making a basic game or puzzle type thing.
If you are really new to Alice, you might want to shy away from collision detection issues until you gain more experience. Many students find collision detection in Alice to be difficult, and it is one of the most frequently discussed topics on the forums. If you go to Google and search for the following keywords, you will find about 180 hits on the Alice forums.

alice "collision detection" site:www.alice.org

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm
   
Reply With Quote
try this...
Old
madden
Senior Member
 
madden's Avatar
 
Status: Offline
Posts: 322
Join Date: Mar 2006
Location: My own little world 0.0
Default try this... - 04-15-2008, 09:16 PM

try this...
http://www.alice.org/community/showthread.php?t=798

P.s (in that order)


Check out my new website - http://www.freewebs.com/maddenuser/

Special thanks to the people who are supporting me...
Drjim, rich0e0rick, Chris101b, ZED, jediaction, x2495iiii, ("Robby"), gabe, JustasM, and Shadow Sovereign.


Games...

CSS - a sidescroler/adventure game.
CASE 1.01 - a escape the room/adventure game.
In the Black and White - a shooter/adventure game.
Field Of Wonder - a adventure game
C.R.E.S - a action/adventure game.

Can you eat 10 cookies in 5 seconds?
I did.
   
Reply With Quote
Old
ewg
Guest
 
Status:
Posts: n/a
Default 04-15-2008, 09:52 PM

the garden file in that thread, is what i was talking about. when you have the arrow keys move the camera it cant penetrate while WASD penetrates. how would i solve this. i would really appreciate if some one can show be how to make it so the camera can go through say a garden maze.
   
Reply With Quote
Camera Movement Notes
Old
DrJim
Guest
 
Status:
Posts: n/a
Default Camera Movement Notes - 04-16-2008, 08:43 AM

As you note, and the attached example illustrates, the camera behavior is different when you use different events - key control, arrow key control and mouse control. I believe most people would consider this a "feature."

Only using the specific arrow key command will prevent the camera from penetrating walls - and then, as Dick notes, only when there are no gaps in the walls. There is no way I know of to map the arrow key control behavior onto either the key control or the mouse control event statements.

Note that both the arrow key commands and the mouse movement control give forward, backward, turn left and turn right control, while you can set up the keys to give any movement you like.

There is also a command to have the mouse just control camera orientation. This is nice to use to control "looking" while you control movement with keys.
Attached Files
File Type: a2w camera control.a2w (222.6 KB, 160 views)
   
Reply With Quote
Old
madden
Senior Member
 
madden's Avatar
 
Status: Offline
Posts: 322
Join Date: Mar 2006
Location: My own little world 0.0
Default 04-16-2008, 12:42 PM

Quote:
Originally Posted by DrJim View Post
As you note, and the attached example illustrates, the camera behavior is different when you use different events - key control, arrow key control and mouse control. I believe most people would consider this a "feature."

Only using the specific arrow key command will prevent the camera from penetrating walls - and then, as Dick notes, only when there are no gaps in the walls. There is no way I know of to map the arrow key control behavior onto either the key control or the mouse control event statements.

Note that both the arrow key commands and the mouse movement control give forward, backward, turn left and turn right control, while you can set up the keys to give any movement you like.

There is also a command to have the mouse just control camera orientation. This is nice to use to control "looking" while you control movement with keys.
Yes, I have also found that collision works differently depending on what type of computer you have. I have a few questions for you ewg, if you could reply to them soon that would be great. My first question is (What type of computer do you have like Mac, Dell etc.) My second question is (what commands are you using to control the camera, are you using (When a (key) is typed do (something), or are you using (let the arrow keys move (subject)? If you have a Mac then I have found for there to be lack of collision detection.


Check out my new website - http://www.freewebs.com/maddenuser/

Special thanks to the people who are supporting me...
Drjim, rich0e0rick, Chris101b, ZED, jediaction, x2495iiii, ("Robby"), gabe, JustasM, and Shadow Sovereign.


Games...

CSS - a sidescroler/adventure game.
CASE 1.01 - a escape the room/adventure game.
In the Black and White - a shooter/adventure game.
Field Of Wonder - a adventure game
C.R.E.S - a action/adventure game.

Can you eat 10 cookies in 5 seconds?
I did.
   
Reply With Quote
collision problem
Old
Lordcorvin
Senior Member
 
Lordcorvin's Avatar
 
Status: Offline
Posts: 59
Join Date: Feb 2011
Location: Hogwarts:)
Default collision problem - 02-16-2011, 04:15 PM

problem with collision if you move backwards then you can go through anything, what should you do to not let it happen
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.