I'm setting the following properties on the player when they join:
Code: Select all
player:set_properties({
textures = { "player.png^[colorize:" .. color:lower() .. ":120", "player_back.png^[colorize:" .. color:lower() .. ":120", },
visual = "upright_sprite",
visual_size = { x = 1, y = 2 },
collisionbox = {-0.5, 0, -0.5, 0.5, 2, 0.5 },
initial_sprite_basepos = {x = 0, y = 0},
})