Little Fighter Empire - Forums
[BG] Change background while a battle - 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: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11)
+--- Thread: [BG] Change background while a battle (/showthread.php?tid=9969)



Change background while a battle - Hisoka - 06-29-2015

It is possible to change the background while a battle?
I'll explain myself better:
Take a character, add attack
And this attack will change the background.

It is possible? If so then you will tell me how?
Please! :)


RE: Change background while a battle - YinYin - 06-29-2015

spawn a big picture facing right (facing: 10)

move it to the back (hit_j: 1 inside the type 3 object)

stick it to the left of the screen (state: 9997 centerx: 9999)


RE: Change background while a battle - Hisoka - 06-29-2015

(06-29-2015, 02:30 PM)YinYin Wrote:  spawn a big picture facing right (facing: 10)

move it to the back (hit_j: 1 inside the type 3 object)

stick it to the left of the screen (state: 9997 centerx: 9999)

I'm a little new at this and I do not quite understand what you've explained...
can you please explain to me in more details? thanks!


RE: Change background while a battle - A-Man - 06-29-2015

(06-29-2015, 02:30 PM)YinYin Wrote:  spawn a big picture facing right (facing: 10)
Why is that?


RE: Change background while a battle - YinYin - 06-29-2015

You need a type 3 object (like dennis_ball for example) that has a sprite with your large background image.
If you just opoint that it will cover everything behind it. To move it up the z axis type 3 objects use hit_j.
hit_j: 50 is neutral (no movement)
anything above is down (you will see dennis and davis_ball use hit_j: 51)
and numbers below are up (again some lf2 blasts use hit_j: 49)
the fastest up you can get is hit_j: 1
This will stick your object to the top border of the background, thus behind most other objects.

opointing the whole thing with facing: 10 just makes sure it is always facing right (in case you don't want your image to be mirrored)
and the state: 9997 centerx: 9999 (in the type 3 object) sticks it to the left of the screen
(the state is used for come/stay/move commands - the centerx value together with the right facing opoint makes sure the actual sprite position is always somewhere to the left of the screen; thus sticking it to the edge like a message)

You may not want all of these features depending on what you are doing.