
Vertical Screen Movement
- warpedpipe
- Posts: 7
- Joined: Thu Nov 15, 2018 2:31 am
Vertical Screen Movement
Im not sure if its possible yet in this version but ill ask anyway. I want to make something similar to Metroid where the player can explore rooms horizontally and vertically. How can I get my player to move to a screen that is above or below the current screen without dying?


Re: Vertical Screen Movement
In the "Bounds_Platform_Simple.asm" script, around line 192, you need to modify the "playerIsNotHurtForTopUpdate" subroutine, commenting out some lines, like this:
And the same for the bottom, around line 160, you need to modify the "doScreenottomUpdate" subroutine, commenting out two lines, like this:
Now, your player should be able to go to the screen that is above or below the current screen without dying 
Code: Select all
playerIsNotHurtForTopUpdate:
;;;; TO USE TOP AS A BOUNDARY, UNCOMMENT THESE LINES
;;; == TOP IS A BOUNDARY
;; LDA #$00
;; STA Object_v_speed_hi,x
;; STA Object_v_speed_lo,x
;; LDA #$02
;; STA temp
;; RTS
;;;;=======END TOP IS A BOUNDARY
Code: Select all
doScreenBottomUpdate:
;;;;;;;;;;;;;;; THIS IS A PLAYER
;;;;;;;;;;;;;;; AT THE BOTTOM OF THE SCREEN.
;;;;;;;;;;;;;;; IF YOU WANT HIM TO GO TO THE NEXT SCREEN DOWN, LIKE MEGAMAN
;;;;;;;;;;;;;;; COMMENT OUT EVERYTHING UNTIL changeMapScreenDown
;;;;;;;;;;;;;;; THIS CODE WILL CAUSE PLAYER DEATH AT BOTTOM OF SCREEN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; JSR HandlePlayerDeath
;; RTS

-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE
- warpedpipe
- Posts: 7
- Joined: Thu Nov 15, 2018 2:31 am
Re: Vertical Screen Movement
Awesome! Thank you.
-
- Posts: 12
- Joined: Sun Dec 02, 2018 6:27 pm
Re: Vertical Screen Movement
Do you know where the file is located?
Re: Vertical Screen Movement
Might be in the routines/userscripts/platform base/mainscripts folder.
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE
- Redherring32
- Posts: 412
- Joined: Sat Aug 11, 2018 2:48 pm
- Location: Usa
Re: Vertical Screen Movement
Also, if you don't want all of the "holes" you fall through to lead down to the screen below,
You can use warps, otherwise just go with Dale's solution.
You can use warps, otherwise just go with Dale's solution.

My current WIP game: Shadow: An Adventure In Monochrome, you can also find me over at the Community Discord.
-
- Posts: 12
- Joined: Sun Dec 02, 2018 6:27 pm
Re: Vertical Screen Movement
Nevermind
Re: Vertical Screen Movement
This thread is awesome! Thank you all for the help.