[4.1.5] Display the Start Menu

dale_coop

Moderator
Staff member
A small script that might be useful some games: a script that display the Start Screen.
For example, if your game starts directly skipping the Start Screen... maybe with an intro/cutscene made of screens & warps... At then end, if you want to display the Start Screen (end of timer/animation of an object), here's a script for that:

Code:
goToStartScreen:
	LDA #$00
	STA update_screen_details	;; special screen
	STA newScreen 				;; start screen
	STA textboxHandler
	STA gameHandler
	STA gameState
	STA change_state
	
	LDA #%11000000
	STA update_screen
	
	LDX player1_object
	DeactivateCurrentObject
	
	JSR DeactivateAllObjects
	
	LDA #START_SCREEN_SONG
	STA currentSong
	PlaySong #START_SCREEN_SONG

	RTS
 

Efoerg

New member
Ok I tried this and maybe I’m to tired to think it though. It works but when I hit start it sends me to my intro screen again then back to the start screen in an endless loop. I’m guessing I need to edit the script where it loads my game but I don’t k ow where to look. Any help would be appreciated thanks.
 

dale_coop

Moderator
Staff member
You right, Efoerg, you need a special START Game script, then ... to warp into your new starting level (not the intro one).
Take a look at thss topic:
http://nesmakers.com/viewtopic.php?p=17552#p17552
 
Top Bottom