Page 1 of 1

Texture and colorize

PostPosted: Sat Nov 14, 2015 01:16
by mahmutelmas06
Hi

issue 1

I want to combine 2 images into one and i want to animate liquid.png.
But when i combine it with cup.png it is not animated anymore.

issue 2

I want to colorize only liquid.png from cup.png^liquid.png
is it possible ?

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
               

tiles = {
{name='cup.png^liquid.png^[colorize'..colour, animation={type='vertical_frames', aspect_w=16, aspect_h=16, length=1}},
         },

Re: Texture and colorize

PostPosted: Sat Nov 14, 2015 01:41
by BlockMen
1) Minetest animates the "result" of the merged images, so "cup.png" needs to have more than 1 frame.

2) Yes, use brackets:
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
               
tiles = {
{name='cup.png^(liquid.png^[colorize'..colour .. ')', animation={type='vertical_frames', aspect_w=16, aspect_h=16, length=1}},
         },

Re: Texture and colorize

PostPosted: Sat Nov 14, 2015 15:22
by mahmutelmas06
Thank you very much.