Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Background: Change background while a battle
#1
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! :)
Reply
Thanks given by:
#2
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)
Reply
Thanks given by:
#3
(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!
Reply
Thanks given by:
#4
(06-29-2015, 02:30 PM)YinYin Wrote:  spawn a big picture facing right (facing: 10)
Why is that?
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#5
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.
Reply
Thanks given by: Marko




Users browsing this thread: 1 Guest(s)