View Single Post
Junior Member
chrytobug's Avatar
Status: Offline
Posts: 7
Join Date: Jul 2015
Location: Southern California
Smile 08-27-2015, 10:38 PM

Oh good! It sounds like I am on the right track. I created lists of objects for each level/room in the game, the collision detection checks a level number variable that indicates what level the player is on. If the player is one level 1, the method selects the level 1 objects list to use in collision detection. The collision detection is set up with a Boolean variable collisionOn. If the variable is true, then the collision detection checks the level and uses those objects to "bounce"off of. When the player moves to the next level, the moveToLevel method turns off the collision detection, then turns it back on when the camera is in the new location/room.

Thanks for answering my question! I hope to share my work when I complete my game next week.

Reply With Quote