platform moving under weight of character

ABK

Well-known member
Id like to make platform move a bit down when character jumps on it (so its a bit lower when character stays on it) and when character jumps off then platform goes slightly up to its previous place.
Im not sure where to start tho and how to detect if player is on it. :(
 
that doesnt work too nice if platform is low enough so character on ground can touch its attackbox :(
Id prefere to detect if player is on the platform in his jumpland animation
 
You can check in didhitscript for its position.

Also you can get opponent property at any time, see if it is out of range.
 
Why don't you just check players coordinate and compare it with platform's coordinate? if any player is standing above, do the 'move down abit'.

Though this only works for players. If you want enemy to have weight as well, you'd have to check all entities.
 
I have problems when jumping player is passing the platform not being on it and platform moves like if player was on it because for the moment their coords were in range and script activated itself, how to detect player animation name ?
 
this is irritating, new logical problem , my blood footsteps dont move along with platform and are floating in midair.
I think ill pass on this idea but that also means ill get the same problem with all moving platforms :'(
IS there any simple way to cancel from jumpland to walking or running animation(depends what you used before jumping)
 
Yeah, there's be a complex system if you think about it.
First of all entity need to have gravity effect so it can move with platform.
If you are using type none, you need to do some hack in entity header:

no_adjust_base 0
subject_to_platform 1
subject_to_wall 1
antigravity 0

blahblah...


IS there any simple way to cancel from jumpland to walking or running animation(depends what you used before jumping)
Try idle 1 in a certain frame of jumpland animation.
But why do you need jumpland if you want to cancel to walk or run?
 
I have jumpland cause i want animation transitions to be smooth but i still want to be able to run immediately after jump if i want to.
Thanks for that simple solution , i think my brain doesnt work too well, i spent lot of time on mod today, i should of thhought about checking header in footsteps.
Is there anyway to make nonlinear movement of platforms? you know so they slowly slowdown when on top and when on bottom if they move up/down, now with velocity change their movement changes immediately, any way to make them start slower ?
 
Well, why don't you just change velocity multiple times to give slowdown effect?

So if you usually do this:

@cmd dasher 0 2 0
frame ...
  @cmd dasher 0 -2 0
frame ...

now do it like this:

@cmd dasher 0 2 0
frame ...
@cmd dasher 0 1.5 0
frame ...
@cmd dasher 0 1 0
frame ...
@cmd dasher 0 0.5 0
frame ...
@cmd dasher 0 0 0
frame ...
@cmd dasher 0 -0.5 0
frame ...
@cmd dasher 0 -1 0
frame ...
@cmd dasher 0 -1.5 0
frame ...
  @cmd dasher 0 -2 0
frame ...
 
yea thats obvious but i thought maybe theres some time based way to do this so you could have whatever animation and script would make character float up/down all the time no matter what delay in animation is.
 
Back
Top Bottom