Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bullet Collision
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Lightbulb Bullet Collision - 08-11-2010, 04:26 PM

Not so much asking for help, but to help others ahead of time.

In this world, I have a way of making collision detection without making the actual bullet move.

Anybody else who might like to contribute their examples, feel free to do so.

WASD to look.

Penguin will flap its wings as long as it's within the line of fire.
Note that it is not meant to be a finished world, and you would need more variables to make the collision happen only when you're firing and whatnot.

To see what I did, look at the world.collisiondetect method and the world.collision function, located in the methods tab and functions tab respectively.
Attached Files
File Type: a2w collisionexample.a2w (749.6 KB, 169 views)
   
Reply With Quote
 

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.