Little Fighter Empire - Forums
Platform Development Progress - 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)
+--- Thread: Platform Development Progress (/showthread.php?tid=6762)

Pages: 1 2


RE: Platform Development Progress - Azriel - 10-20-2011

it's
if (y < 0) rather than > 0 (since -ve is up)

and it's not so simple if you have boxes that ik14 that can change position (boxes fall, etc.), stacking boxes, standing on top one and bottom one is hit and falls.



Azriel~


RE: Platform Development Progress - Boop - 10-20-2011

(10-19-2011, 11:52 PM)xmfcx Wrote:  After some conversations with Azriel;

Every object has a y value.
If y-value>0 then apply gravity force on weapons and chars.

So if i want to create another platform; i should create an area which will use this unequation: lf y-value>xx then apply gravity force.
1) Azriel is right:
(10-20-2011, 09:38 AM)Azriel Wrote:  it's if (y < 0) rather than > 0 (since -ve is up)

2) How is this not obvious? The problem is figuring out how to do it... And then platforms are complex. Platforms only exists between certain x and z values. And there are actually 2 grounds. Because you can be "under" the platform etc.


RE: Platform Development Progress - Azriel - 10-20-2011

(10-20-2011, 09:51 AM)Lord Silva Wrote:  2) How is this not obvious? The problem is figuring out how to do it... And then platforms are complex. Platforms only exists between certain x and z values. And there are actually 2 grounds. Because you can be "under" the platform etc.

which is why there is a (data definable) fixed symmetrical bounding bdy for each object in hq used for block checking (check for ceiling intersections, like if you're jumping and your head hits the ceiling, you want to stop the object from moving upwards)

also worth mentioning, there's the problem with moving platforms (you want the objects on the platform to move with it). x and z movement may be algorithmically simple, but with y movement, there's even more complications depending on whether the platform is moving slower/faster than gravity is pulling the object down, etc.

also, what you have in an algorithm may not be simple to implement, especially in lf2 since it's already compiled.



Azriel~


RE: Platform Development Progress - mfc - 10-20-2011

At last; the exceptable thing we can do would be this:

First find which part of hex applies the gravition force due to value of ground (for now it's 0)

Then create an itr kind which will make "the objects which interacts with it" use the unequation(if y-value<xx then add gravity) we referred in itr's dvy value or some kind of it..

Okay i know it's almost impossible to implement through the compiled exe but for now we're trying to brainstorm on it before starting to hex it..
...
@Azriel: for now, it is already hard enough to think about a stable platform.. Moving platforms are work of far future for lf2..
And i still don't understand when you talk about boxes with itrk14..
If it would be possible to make itrk14 stop y movement too, we wouldn't have to think about it complicated like this..
Is it possible to make itrk14 stop y movement too?
(pls silva, dont give the link of guidelines for this. (Is it possible?>YES,,Is it practical?>MAYBE,,...etc:P))

@Silva: At first i was thinking if i just replicate the thing which writes 0 to char's y value, but then realised that it's not enough for just doing it.