Page 1 of 1

Digging animated nodes

PostPosted: Sun Aug 05, 2012 20:31
by Rath
When I create an animated node and then dig it the entire animation is displayed.

Is there a way to fix this?

Image
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node("temp:anitmation", {
    description = "Animation",
    tiles = {
        {name="temp_animation.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}}
    },
    groups = {crumbly=1},
})

PostPosted: Sun Aug 05, 2012 20:43
by sfan5
Thats a Bug in Minetest and not your Fault.
It's not easy to fix too

PostPosted: Mon Aug 06, 2012 14:49
by Rath
Switching the order of the two if blocks around lines 1021-1054 of mapblock_mesh.cpp will cause the first frame to be displayed when digging an animated node.