Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
object always underneath
#1
Is it possible to make an object always underneath the characters while also being in dynamic positions depending on where it's opointed? I know i can use like j:70 and shoot it to top of map but I want it to be where it was opointed on the ground.

basically i wanna make like small dirt on ground where they can walk on it and it will never be on top of them. always below. so ye
Reply
Thanks given by:
#2
Locate its center above the sprite. Now wherever and however your dirt is/move, it will always be behind.
[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:
#3
Sorry, I don't get it.

Also, I want it to be behind every character. Like it should always be behind no matter what as if it was part of the ground/bg.
Reply
Thanks given by:
#4
I think Doctor A is saying that you can use hit_j: to first shoot the dirt to the top of the map. After that, you adjust centery to position the location of the dirt, and it'd all be considered "behind".
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by:
#5
but how would that work?
Depending on where you are on the map theres a limit to how high it can go up before it reaches the top.
Reply
Thanks given by:
#6
[Image: lY4T5n9.png]
As a result of a low centery value (with a high position), the dirt sprite will always be beyond ground level. Since the character's centery value will always at the feet, thus placing the character on ground, the character will never be seen behind the dirt. You can then use hit_j if you want to change the z-position of the dirt.
[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:
#7
yeah but the attack is on ground level causing dirt to appear on the ground.

Reply
Thanks given by:
#8
Hmph, sadly I can't think of a way around it. But I can say the Kamehameha is looking natural with the dirt like that (after all, that's how z-axis rendering is supposed to work).
[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:




Users browsing this thread: 1 Guest(s)