Player animation cycle change based on terrain type?

Hi,

I’m new to Roblox game development hence a couple of rookie game design questions.

  1. What is a common / official tech. approach for changing player humanoid animation type based on terrain type?

  2. Roblox has a bunch of ‘auto’-detected conditions like water(swimming), ladder(climbing), ground (running) etc. - is there a standard way for extending the list with custom ones - army crowling, monkeybar or horisontal bar stunts etc. Something like monkeybar obstacles are of a particular interest as the character needs to switch constrains form ground to the bars somehow.

PS. Didn’t find any good description how exactly roblox engine detects ladders.

EDIT: 3 - While on the same page - didn’t investigate it yet… but is it possible to extend standard pathfinding functions to account for any custom opstacle types?

any exising games utilizing non-standard animation switching based on game conditions?

Thanks for your help!

Someone made a script which changes footstep sounds according to terrain type. Would that work for you?

1 Like

Hey @PrincessPandaBlox - thanks! triggering based on ‘Humanoid.FloorMaterial’ it is. Interesting bit from the docs:

When the Humanoid is not standing on a floor, the value of this property will be set to Air .

… so monkeybars (and other humanoid off-the-ground conditions are all air?) what about ladders?
will investigate some hacking options like making character stand on invisible ground - detect it and substitute animaiton to other type.

Not 100% sure if it is possible to have custom tags instead of pre-defined materials which could act as a trigger.

Will check other Humanoid api triggers

Cheers!

1 Like