Alice Community  

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

Reply
 
Thread Tools Display Modes
How do I make a surface act solid?
Old
Brickguy190
Junior Member
 
Brickguy190's Avatar
 
Status: Offline
Posts: 3
Join Date: Sep 2011
Default How do I make a surface act solid? - 09-19-2011, 08:59 PM

I am having trouble getting things like platforms to do their jobs in Alice. Is there some sort of function that can 'sense' whether another object is interfering with it's surfaces?
   
Reply With Quote
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 09-19-2011, 09:52 PM

It's very complicated to detect an actual collision between individual polygons, but a simple collision can be made from the functions menu.
First, select an object, then, click on the tab called functions, and in that list, under proximity is an "Is within threshold" function. You can use that in if/else statements.


[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.
   
Reply With Quote
Old
Brickguy190
Junior Member
 
Brickguy190's Avatar
 
Status: Offline
Posts: 3
Join Date: Sep 2011
Default 09-20-2011, 06:55 AM

Could you explain how to detect the collisions between polygons in Alice?
   
Reply With Quote
Old
GameKid
Senior Member
 
GameKid's Avatar
 
Status: Offline
Posts: 467
Join Date: May 2011
Location: My magnificent castle
Default 09-20-2011, 01:12 PM

Even I don't know that, but there are some collision engines you could use. I remember I made a thread for this, and tau posted an engine, but that thread is lost in time.
Sorry...
Edit: I just thought of something brilliant, but it may'nt work for objects like mazes and things.
(In the movement method)
If [[Object to move] is within [[Object to bump into]'s width]
If: Do nothing.
Else: (Insert movement here.)


[COLOR=e4eaf2]Your text here[/COLOR]
Come on, you know you want to try it.

Last edited by GameKid; 09-25-2011 at 08:21 PM.
   
Reply With Quote
Reply

Tags
solid, surface

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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.