Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Platform Development Progress
#11
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~
Reply
Thanks given by:
#12
(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.
[Image: doty7Xn.gif]

10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.


Reply
Thanks given by:
#13
(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~
Reply
Thanks given by:
#14
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.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)