Page 1 of 1

Animated texture on node

PostPosted: Thu Dec 15, 2016 22:23
by Nekrofage
Hi !!

I search an simple example of animated texture on node, do you have something like that ?

Thanks you ! :D

Re: Animated texture on node

PostPosted: Thu Dec 15, 2016 23:19
by Christian9
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("mod_name:node_name", {
   description = "desc",
   drawtype = "drawtype",
   tiles = {
      {
         name = "name_animated.png",
         animation = {
            type = "vertical_frames",
            aspect_w = 16,
            aspect_h = 16,
            length = 2.0,
         },
      },
   },
   special_tiles = {
      {
         name = "name_animated.png",
         animation = {
            type = "vertical_frames",
            aspect_w = 16,
            aspect_h = 16,
            length = 2.0,
         },
         backface_culling = false,
      },
   },


Try downloading the game default "mods" on github and modifying the animated water texture

Re: Animated texture on node

PostPosted: Sat Dec 17, 2016 20:20
by cx384

Re: Animated texture on node

PostPosted: Sun Dec 18, 2016 22:21
by Nekrofage
Hi all !!

Thank your help ! :D

This is my code :
https://github.com/Nekrofage/animtex