Alice Community  

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
collision detection in myFirstMethod
Junior Member
Status: Offline
Posts: 5
Join Date: Sep 2013
Default collision detection in myFirstMethod - 12-16-2015, 11:47 AM

version Alice3:

I had to put a while loop in myFirstMethod() in order for the collision detection functions to detect/work. makes sense now that i think about it...keeps looping/scanning for collision events...right?

New problem: counter variable keeps incrementing b/c each collision is counted multiple times b/c its in a while loop. fixed this by moving object away so it doesnt multiple detect collision. is there a way to delete or remove an object from a running program upon collision? ie pirate ship collides w/ iceberg so iceberg is deleted/removed.

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