Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Alice3-collision event + variables (http://www.alice.org/community/showthread.php?t=11389)

coynerm 12-14-2015 02:13 PM

Alice3-collision event + variables
 
Trying to create a global counter variable to keep track of collision events ie each time an object collides then increment counter but...can only create local variable for each collision event. Is there a way to create a global variable in the initializeEventListeners?

Also, why doesnt the 'object.isCollidingWith.otherObject' function work? I tried using this but it didnt detect the collision so I went w/ the eventListener for collision detection. If I can get this function working then I can create a global variable....thx.

Mike

(posted this thread 2x b/c not sure of which forum is the most appropriate one)

Alexis0602 12-14-2015 04:50 PM

Within that is colliding statement do you tell it to do anything? If you didn't set it to do anything you may not be seeing the result of a collision statement.

coynerm 12-14-2015 06:46 PM

[QUOTE=Alexis0602;56945]Within that is colliding statement do you tell it to do anything? If you didn't set it to do anything you may not be seeing the result of a collision statement.[/QUOTE]

Its working now...thx for the reply...


All times are GMT -5. The time now is 06:37 PM.

Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.