Alice Community  

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

Reply
 
Thread Tools Display Modes
How do I make it so if a plane gets within a threshold of any object?
Old
dragonmaster905
Member
 
Status: Offline
Posts: 15
Join Date: May 2012
Default How do I make it so if a plane gets within a threshold of any object? - 05-28-2012, 09:15 AM

Ok, so I am making a flight simulator and I wanted to know if there was a way to make it so that if the plane touches any object it crashes?
Also, is there a way to end the world?

Last edited by dragonmaster905; 05-28-2012 at 09:21 AM.
   
Reply With Quote
Go Here First
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default Go Here First - 05-28-2012, 10:12 AM

http://www.cs.duke.edu/csed/alice/al.../tutorials.php

and here http://www.cs.duke.edu/csed/alice09/

Many of your questions are answered here. There are many useful tutorials for people who are new to the Alice environment, and need to know how it all works. Have fun with it.

Last edited by MrMoke; 05-28-2012 at 04:47 PM.
   
Reply With Quote
Old
dragonmaster905
Member
 
Status: Offline
Posts: 15
Join Date: May 2012
Default 05-28-2012, 02:56 PM

I don't wanna go searching through those! Can you at least tell me which one?!
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 05-28-2012, 03:03 PM

A University? Oh you're cool.
Either way, the link isn't very helpful since the user is still thinking of a plane crash in terms of an actual plane crashing. Thinking like that in any programming class will become a trainwreck.
What you need to learn how to do is break down a plane crash into separate events: So what happens?
Code:
The plane hits the ground
Explosion
Fire everywhere
Plane turns into a giant robot
Something like that. Deal is, everything in Alice is nothing but a series of animations (using that term loosely here) and events.
So: What happens if the plane hits the ground? There's an explosion.
There will be fire everywhere.
The plane will turn into a giant robot.
And you have to make all of these. The explosion can be a few dark spheres and rocks flying everywhere, the fire can be fire objects all around the place, and the giant robot—Alice has one so you're covered.

For a study on collision detection, or having the plane touch the ground and have Alice react, then you'll have to search the forums for various collision methods. The one you're trying to do probably involves using lists, threshold, and distance away (left, top, etc).
   
Reply With Quote
Reply


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.