Lower frequency of standing/sitting animation

This commit is contained in:
An0n3m0us 2020-09-30 07:43:52 +01:00
parent dd91a1bfe5
commit 76644f4ca8
3 changed files with 10 additions and 10 deletions

View file

@ -8,12 +8,12 @@ player_api.register_model("character.b3d", {
textures = {"character.png"}, textures = {"character.png"},
animations = { animations = {
-- Standard animations. -- Standard animations.
stand = {x = 0, y = 79}, stand = {x = 0, y = 159},
lay = {x = 162, y = 166}, lay = {x = 161, y = 320},
walk = {x = 168, y = 187}, walk = {x = 322, y = 326},
mine = {x = 189, y = 198}, mine = {x = 328, y = 347},
walk_mine = {x = 200, y = 219}, walk_mine = {x = 349, y = 358},
sit = {x = 81, y = 160}, sit = {x = 360, y = 379},
}, },
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
stepheight = 0.6, stepheight = 0.6,
@ -25,10 +25,10 @@ minetest.register_on_joinplayer(function(player)
player_api.player_attached[player:get_player_name()] = false player_api.player_attached[player:get_player_name()] = false
player_api.set_model(player, "character.b3d") player_api.set_model(player, "character.b3d")
player:set_local_animation( player:set_local_animation(
{x = 0, y = 79}, {x = 0, y = 159},
{x = 168, y = 187}, {x = 328, y = 347},
{x = 189, y = 198}, {x = 349, y = 358},
{x = 200, y = 219}, {x = 360, y = 379},
30 30
) )
end) end)

Binary file not shown.