Get More Tiles? 4.5.9

SciNEStist

Well-known member
are you looking for more tiles per screen? if your game doesn't use a tile hud then changing the tile layout on the screen to a "no hud" option will get you a few more rows of tiles on your screen.

if you want more tiles in general and need more room for graphics, that is trickier, but possible
 

TheRetroBro

Active member
are you looking for more tiles per screen? if your game doesn't use a tile hud then changing the tile layout on the screen to a "no hud" option will get you a few more rows of tiles on your screen.

if you want more tiles in general and need more room for graphics, that is trickier, but possible
No, more tiles scripts. Ive used them all lol
 

smilehero65

Active member
No, more tiles scripts. Ive used them all lol
You can use screenbytes to make more tile scripts!


Basically, you use a single tile and make it to have two functions.
These functions will be activated if you check or not a Screen Flag in your Screen.
 
I used Screenflags2 for different tile functions, in my scrolling platformer, then you can choose what tilefunction you want in what screen.
(Atleast if you are using the "Lets Improve Scrolling" tutorial from the forum.)

screenflags2.jpg

Here is a example tilescript, with different functions using screenflags2:

Code:
;;Multiple functions in a tile-script using screenflags2

;;Not intended for tiles that are hard-coded into other scripts
;;like the trampolinetile and the prizeblock
;;they are a bit more trickey


LDA ScreenFlags01 ;;This is the Screen Flags 2
AND #%01000000 ;User Flag 09
    ;BEQ +notThisFlag
    BNE +isFlag
    JMP +notThisFlag
        +isFlag:
            ;;;here you can put the code for the tile-function
            ;;;for these specific screens that have screenflag 09 checked
            ;;;example INC myAmmo, if it is a ammo pickup tile

            JMP +skipToEnd ;we want to skip to the end now, only doing one tilefunction -flag09 stuff.
    +notThisFlag:
;;;;;;Flag 09 was not used


;;;;;;check if flag 10 is used
LDA ScreenFlags01 ;;This is the Screen Flags 2
AND #%00100000 ;User Flag 10
BEQ +notThisFlag
;BNE +isFlag
;JMP +notThisFlag
;+isFlag:
            ;;here you can put the code for the tile-function
            ;;for these specific screens that you have screenflag 10 checked
            ;;example INC myHealth, if it is a health pickup
            JMP +skipToEnd ;we want to skip to the end now, only doing one tilefunction -flag 10 stuff
    +notThisFlag:
;;;;;;Flag 10 was not used


            ;;;here you can put the tile-code that runs if none of the specific screnflags where used.
            ;;;example Warping the player to the next screen


+skipToEnd:
 
Last edited:

baardbi

Well-known member
Any way to incorporate more tiles?

I used up all my tiles space and would like to add one more tile.
I haven't tested this myself, but I hear good things:

 

NightMusic

Member
I used Screenflags2 for different tile functions, in my scrolling platformer, then you can choose what tilefunction you want in what screen.
(Atleast if you are using the "Lets Improve Scrolling" tutorial from the forum.)

View attachment 8013

Here is a example tilescript, with different functions using screenflags2:

Code:
;;Multiple functions in a tile-script using screenflags2

;;Not intended for tiles that are hard-coded into other scripts
;;like the trampolinetile and the prizeblock
;;they are a bit more trickey


LDA ScreenFlags01 ;;This is the Screen Flags 2
AND #%01000000 ;User Flag 09
    ;BEQ +notThisFlag
    BNE +isFlag
    JMP +notThisFlag
        +isFlag:
            ;;;here you can put the code for the tile-function
            ;;;for these specific screens that have screenflag 09 checked
            ;;;example INC myAmmo, if it is a ammo pickup tile

            JMP +skipToEnd ;we want to skip to the end now, only doing one tilefunction -flag09 stuff.
    +notThisFlag:
;;;;;;Flag 09 was not used


;;;;;;check if flag 10 is used
LDA ScreenFlags01 ;;This is the Screen Flags 2
AND #%00100000 ;User Flag 10
BEQ +notThisFlag
;BNE +isFlag
;JMP +notThisFlag
;+isFlag:
            ;;here you can put the code for the tile-function
            ;;for these specific screens that you have screenflag 10 checked
            ;;example INC myHealth, if it is a health pickup
            JMP +skipToEnd ;we want to skip to the end now, only doing one tilefunction -flag 10 stuff
    +notThisFlag:
;;;;;;Flag 10 was not used


            ;;;here you can put the tile-code that runs if none of the specific screnflags where used.
            ;;;example Warping the player to the next screen


+skipToEnd:
I created a multiple in one of my scripts to get up to 256x8 (whatever that equals.. i suck maths) different functions per tile 14 n 15 subtitles. You seem in my recent tutorial I made for you the overworld map one I had the warp tile do two functions... It's the same concept. Instead of checking gamestate check the userscreebyte00-07
 
Top Bottom