View Single Post
Alice3-collision event + variables
Old
coynerm
Junior Member
 
Status: Offline
Posts: 5
Join Date: Sep 2013
Default Alice3-collision event + variables - 12-14-2015, 01:13 PM

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)
   
Reply With Quote