Alice Community  

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

Reply
 
Thread Tools Display Modes
Setting boundries
Old
fry1020
Guest
 
Status:
Posts: n/a
Question Setting boundries - 09-19-2009, 09:31 PM

Hey I'm trying to create a game where you cant move through walls or objects. How can I do that? Thanks!
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 09-20-2009, 07:56 PM

Put in collision detection. Here is a working method:

Loop infinity times
If/else
Man is within 0 metres of wall
man move backwards 1 metre
   
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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.