Texture and colorize

Post Reply
User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Texture and colorize

by mahmutelmas06 » Post

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 ?

Code: Select all

					

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

Beverage

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

Re: Texture and colorize

by BlockMen » Post

1) Minetest animates the "result" of the merged images, so "cup.png" needs to have more than 1 frame.

2) Yes, use brackets:

Code: Select all

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

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: Texture and colorize

by mahmutelmas06 » Post

Thank you very much.
My Mods:

Beverage

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests