Is there a nice, simple way to say "wait a darn minute?"

Razzie.P

Member
Is there a way to have the script be "delayed" before continuing? I'm guessing no, but figure it couldn't hurt to ask. For example, if I'm using this to start the game, and I want the music to stop, play the "start game" sound, wait a couple of seconds, then warp to the next screen, is that possible without creating an object and using the action steps to trick it?

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; PART 1: Prepare the game for a state change.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  LDA #STATE_START_GAME
  STA change_state
  
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; PART 2: If a sound is playing and you want it to stop,
;; or if you'd like to play a sound effect to designate
;; the button press, you can do that here;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

  StopSound

  PlaySound #sfx_startGame

;;; anything that can make it wait like this?
  ; Hold.... 
  ; Hold... 
  ; Hold...
  
  ; Now continue to start the game.  
  
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; PART 3: Turn on sprites;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

  LDA #%10000000
  STA gameHandler ;; turn sprites on
  RTS
 
Top Bottom