Rubberduckycooly / Sonic-1-Sonic-2-2013-Script-Decompilation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Fix Suggestion] Need to push Start to leave Continue Screen : this activates Pause Menu too

opened this issue · comments

By default, we need to push Start Button to leave Continue screen before timer goes to 0. And press Start button activates Menu in 1.2.0 :3 ^^ .

Game Script Affected : Sonic 1 - 2013

Scripts/Continue/ContinueSetup :

Before :

	case 3
		CheckTouchRect(0, 0, screen.xsize, screen.ysize)
		if checkResult > -1
			inputPress.start = 1
		end if
		if inputPress.start == 1
			object[0].animation = ANI_CONTINUE_UP
			object[0].speed = 0
			if stage.playerListPos == 2
				object[0].ypos -= 0x20000
			else
				object[0].ypos -= 0x60000
			end if
			PlaySfx(SfxName[Charge], 0)
			object.state++
			object[+2].state++
		end if
		break

After:

	case 3
		CheckTouchRect(0, 0, screen.xsize, screen.ysize)
		if checkResult > -1
			inputPress.buttonA = 1
		end if
		if inputPress.buttonA == 1
			object[0].animation = ANI_CONTINUE_UP
			object[0].speed = 0
			if stage.playerListPos == 2
				object[0].ypos -= 0x20000
			else
				object[0].ypos -= 0x60000
			end if
			PlaySfx(SfxName[Charge], 0)
			object.state++
			object[+2].state++
		end if
		break

While this is a good suggestion, it is intended behaviour for the scripts to work like that (idk why), this kind of fix would work better as a mod rather than an edit to the base scripts, as the idea is to preserve the original scripts code as much as possible, with any tweaks/improvements being made via mods