Alice Community  

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

Reply
 
Thread Tools Display Modes
Caps nbcfp help
Old
sargentnbbranco
Member
 
sargentnbbranco's Avatar
 
Status: Offline
Posts: 39
Join Date: Dec 2011
Location: Stewartsville, New Jersey
Default Caps nbcfp help - 12-19-2011, 05:06 PM

So i have three weeks to work on a project, and me and my partner need help with AI's, Getting shot and exploding, and being able to blow up an air craft carrier. its a WWII game, BTY.


SOPA Piracy Act has disabled signiture
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 12-19-2011, 05:53 PM

Now that you have collision solved, you use collision to detect if an object is within the threshold of the aircraft carrier. Now, remember what I told you to do?
Separate the aircraft carrier into parts. You don't have to go into a 3D design program and edit it yourself, you can use Alice shapes such as the box and set their vehicle to the aircraft carrier. To resize the shapes to the shape of the carrier, you can make a method that resizes them and click the "more" button to bring up resize from top to bottom, etc.
After that, you can make a list of objects that are part of the aircraft carrier's collision system. If a cylinder is within the threshold of the carrier's collision system, then you activate an explosion event. This explosion event is the artistic side and I can't really help you there. Make a cheap Alice fire or something.
   
Reply With Quote
Old
sargentnbbranco
Member
 
sargentnbbranco's Avatar
 
Status: Offline
Posts: 39
Join Date: Dec 2011
Location: Stewartsville, New Jersey
Default 12-19-2011, 06:00 PM

Well, thats a real nice way that almost has no garentee of falure. but my partner wants it quicker. If we just use this, will it work:
IF: cylinder is within <number> meters of box
aircraftcarrier.explode
Else
world.miss
with <number> being a value that i cant figure out is ideal right now.


SOPA Piracy Act has disabled signiture
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 12-19-2011, 06:04 PM

If you're okay with your box being treated the same way as a sphere. Just remember, Aircraft carrier has a huge radius, but it's thin. I recommend just sending the aircraft carrier through the rectangle collision.
   
Reply With Quote
Old
sargentnbbranco
Member
 
sargentnbbranco's Avatar
 
Status: Offline
Posts: 39
Join Date: Dec 2011
Location: Stewartsville, New Jersey
Default 12-19-2011, 06:29 PM

Quote:
Originally Posted by Mr Kidnapper View Post
If you're okay with your box being treated the same way as a sphere. Just remember, Aircraft carrier has a huge radius, but it's thin. I recommend just sending the aircraft carrier through the rectangle collision.
ok, but if you just use a box without collision detection methods like the one you mentioned. will it work if i just do if its within threshold of box, since that has a smaller radius? sory for the waste if it can't


SOPA Piracy Act has disabled signiture
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 12-19-2011, 06:46 PM

Well that's collision detection already. Remember, cylinder needs to collide with box first, Though I don't really see the point of using a box that is smaller than the target itself as the base for collision.
   
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.