object always underneath - 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: object always underneath (/showthread.php?tid=9930) |
object always underneath - bashscrazy - 06-08-2015 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 RE: object always underneath - A-Man - 06-08-2015 Locate its center above the sprite. Now wherever and however your dirt is/move, it will always be behind. RE: object always underneath - bashscrazy - 06-10-2015 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. RE: object always underneath - STM1993 - 06-11-2015 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". RE: object always underneath - bashscrazy - 06-11-2015 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. RE: object always underneath - A-Man - 06-11-2015 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. RE: object always underneath - bashscrazy - 06-11-2015 yeah but the attack is on ground level causing dirt to appear on the ground. Spoiler (Click to View) RE: object always underneath - A-Man - 06-11-2015 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). |