Little Fighter Empire - Forums
[solved] Change backgrounds in middle stage - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=45)
+---- Thread: [solved] Change backgrounds in middle stage (/showthread.php?tid=6408)



[solved] Change backgrounds in middle stage - Electric2Shock - 05-09-2011

HEXers! One problem for you to solve!

How do we change backgrounds in the same stage but different levels. i.e Suppose we are at Lion forest at stage 1-2 and how to be go to the great wall in 1-3?

Any suggestions would be appreciated.


RE: Change backgrounds in middle stage - Boop - 05-09-2011

There is an address which stores the current background, you need to write to it. The problem is that writing to it while a game is running will cause lf2 to crash. You will have to write to it while the screen is black and lf2 is loading the next sub-stage, and even then I don't know if it won't crash.

http://www.lf-empire.de/forum/showthread.php?tid=867

I did something similiar in boss mode. All boss fights are stage 6, yet each of them have a different background. Except the background is selected before you start the stage, not during.


RE: Change backgrounds in middle stage - Simoneon - 05-09-2011

You can also do this with DC. Opoint an image, and make it go up to z-axis as much as possible. Problem is, you can only make backgrounds that are lf2-screen size (yeah there's a way to do it for more space, but it requires zero placer (correct me if I'm wrong) and other nasty stuff).

I actually have done this to Half World mod. :p


RE: Change backgrounds in middle stage - empirefantasy - 05-09-2011

(05-09-2011, 05:48 PM)Simoneon Wrote:  Problem is, you can only make backgrounds that are lf2-screen size (yeah there's a way to do it for more space, but it requires zero placer (correct me if I'm wrong) and other nasty stuff).

why as big as LF2 screen size ? you can make a large image (maybe w: 3000).


RE: Change backgrounds in middle stage - Lauli - 05-09-2011

Actually you can DC a two-layer background in the stage. Have one "sky" picture with state: 9997, one "foreground" picture, align them correctly and BAM! You have a perfectly faked background-change!


RE: Change backgrounds in middle stage - YinYin - 05-09-2011

thats only two static images still - no true parallax scrolling


RE: Change backgrounds in middle stage - TheNave - 05-09-2011

(05-09-2011, 07:51 PM)YinYin Wrote:  thats only two static images still - no true parallax scrolling

if the sky has a state: 9997 as lauli said, then it won't move atall, while the other image without that stave moves along when the camera moves, that IS parallax scrolling, 2 layers only, but still works :D


RE: Change backgrounds in middle stage - Boop - 05-09-2011

What if a character goes all the way to the top/bottom(depending how u look at it) of the Z axis? Won't he be behind the "ball"? Especially in stage mode where the enemies have high object numbers.

Edit: Also, what about z-width? or can you get around that by using one of those weird blocking movement states?


RE: Change backgrounds in middle stage - YinYin - 05-09-2011

(05-09-2011, 07:53 PM)TheNave Wrote:  that IS parallax scrolling, 2 layers only, but still works :D
i understood it but an image that doesnt move at all is still static to me - parallax scrolling is what happens in between these two

(05-09-2011, 08:07 PM)Lord Silva Wrote:  Won't he be behind the "ball"? Especially in stage mode where the enemies have high object numbers.

can you get around that by using one of those weird blocking movement states?
perfect fix
also i havent experienced it to be a problem so far if the image in the background keeps using the hit_j tag to move up (and if its one of the first objects created isnt it always drawn before all the other characters with higher object numbers? -> thus characters get drawn in front of it)