Sâmbătă, 2024-05-18, 10:11 PM
Principala » Online jocuri » Cautarea obiectelor

Mystic Diary: Haunted Island

Stop a magician’s ghost and free the trapped souls haunting the Black Woods in Mystic Diary: Haunted Island! Communicate with a trapped ghost, the magician’s very own brother, as he guides you through the manor. Follow Victor’s clues and stop the disturbed Gustav as quickly as you can! Solve cryptic puzzles and put together bizarre machines to unlock the secrets of the house in this incredible Hidden Object Puzzle Adventure game!
Raging: 0.0/0
Contoare: 352/215
Total comentarii : 1
1 Rqjib  
0
I made a function caleld pauseGame() which was caleld whenever a player clicked pause or collected one of the keys (the coins) which basically turned off all the eventListeners which made the character or the background move so the keys did nothing. Then I linked the unPauseGame() function to whichever exit button I had which reactivated those eventListeners! Took a lot of figuring out but heres the code;function pauseGame(){leftPressed = false;downPressed = false;upPressed = false;rightPressed = false;xSpeed = 0;mcMonkeyWalk.stop();stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpHandler);stage.removeEventListener(Event.ENTER_FRAME, loop);}function unpauseGame(){stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);stage.addEventListener(Event.ENTER_FRAME, loop);}As for getting the menu screen up I made a movie clip which contained the quality buttons etc, and made it invisible (menuScreen.visible = false;) and then made it visible = true; when I needed to and vise versa! Hope that helped let me know if you need helpJames

Prenume *:
Email *:
Cod *: