Hi, was wondering what is the best practice for playing a sound between state changes? Right now I am creating a sound in one state, setting the persist option to true and it works fine, but how will this be disposed (destroyed)? This sound is used in the 1st state often, not just during the switching of states (it is a menu click sound). Suggestions?
Posts made by CannibalCat
Playing a sound during state transition
Platformer Game with Ladders - Help!
Hi all, wanted to make a 2D platformer similar to the old Montezuma's Revenge but I'm having a bit a trouble with handling ladders. Right now I have a tilemap in .tmx format with several layers, I figured it would be best to make the "climbable" tiles (ladders, vines, etc) in a separate layer which I could then check collisions against. Ultimately I would like to detect if the player is within a certain tolerance inside the ladder tile that he would be centered on it and then put into a climbing state. Not really sure how to approach this, or if I'm even thinking of it the best way. Any advice, code snippets or examples of this? Thanks!