Apr 6, 2018 at 10:29 PM
Join Date: Apr 5, 2013
Location: In my mind and of my body.
Posts: 1640
Age: 27
Pronouns: he/him
So here's some stuff I've been working on lately.
Since this is such a complicated hack I've decided to put this in it's own thread.
You can set various variables using <BKG as shown below and set how many backgrounds to draw with <BKN (setting <BKN to 0 makes ir render vanilla backgrounds). I *think* it currently supports only 8 but you can easily get more space if you're willing to replace other things and move the offsets.
Please note that the default offset of this hack's function is at balfrog's code, if you want to move it you have to change the hex of the 2nd patch and move the code of the actual function elsewhere.
Also say hello to the longest TSC command ever.
So here's you the scroll type works, it's in binary but you have to "set" all the bits at the same time (kinda like EQ+ but you have to do it all in one command)
So 9 would make it scroll horizontal with the character/camera, and vertical with a timer
<BKNXXXX
Determines how many slots the custom BK has
0000 makes it render vanilla backgrounds.
And finally here's a test hack showing off all the features in the mod.
BKG demonstration
Have fun!
Since this is such a complicated hack I've decided to put this in it's own thread.
You can set various variables using <BKG as shown below and set how many backgrounds to draw with <BKN (setting <BKN to 0 makes ir render vanilla backgrounds). I *think* it currently supports only 8 but you can easily get more space if you're willing to replace other things and move the offsets.
Please note that the default offset of this hack's function is at balfrog's code, if you want to move it you have to change the hex of the 2nd patch and move the code of the actual function elsewhere.
Also say hello to the longest TSC command ever.
Code:
BacKGround
<BKGAAAA:BBBB:CCCC:DDDD:EEEE:FFFF:GGGG:HHHH:IIII:JJJJ:KKKK:LLLL:MMMM:NNNN:OOOO:PPPP
A = Slot number //the draw order
B = L_framerect //how far from the left side of the bitmap the render area is
C = U_framerect //how far from the top of the bitmap the render area is
D = X size //how wide the render are is
E = Y size //how high the render are is
F = X repeat //how many times the bitmap repeats horizontally
G = Y repeat //how many times the bitmap repeats vertically
H = X distance //the horizontal distance between each rendered sprite
I = Y distance //the vertical distance between each rendered sprite
J = Scroll type //how the background scrolls (see the list below)
K = Scroll speed X //How fast the background scrolls (9 is how fast it moves under the "move slowly" setting in vanilla)
L = Scroll speed Y //How fast the background scrolls (9 is how fast it moves under the "move slowly" setting in vanilla)
M = Animation sprites // how many sprites the rendered area cycles through
N = Animation speed // how many frames it takes for the rendered area to change
O = X_offset // how far from the horizontal absolute corner of the render area the sprite starts rendering
P = Y_offset // how far from the vertical absolute corner of the render area the sprite starts rendering
So here's you the scroll type works, it's in binary but you have to "set" all the bits at the same time (kinda like EQ+ but you have to do it all in one command)
Code:
Scroll type list: (in binary)
0 = fixed
1 = horizontal move with char/camera
2 = vertical move with char/camera
4 = horizontal move with timer
8 = vertical move with timer
16 = scroll with char's direction instead of away
So 9 would make it scroll horizontal with the character/camera, and vertical with a timer
<BKNXXXX
Determines how many slots the custom BK has
0000 makes it render vanilla backgrounds.
And finally here's a test hack showing off all the features in the mod.
BKG demonstration
Have fun!
Last edited: