Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //initEventTypes script
- EventTypes { MOUSE_CLICK, KEY_PRESS, GAME_WIN, SCORE_REACH_9000, SIZE }
- //Any instance
- listen(EventTypes.SCORE_REACH_9000, sayOver9000)
- //Instance responsible for score tracking
- if (score > 9000) emitEvent(EventTypes.SCORE_REACH_9000, [score])
- //Script sayOver9000(eventData)
- var eventData = argument0
- var score = eventData[0]
- show_message_async("IT'S OVER 9000!!! Your score is: " + string(score))
Advertisement
Add Comment
Please, Sign In to add comment