Texture and colorize

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

Texture and colorize

by mahmutelmas06 » Sat Nov 14, 2015 01:16

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}},
         },
My Mods:

Beverage
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

Re: Texture and colorize

by BlockMen » Sat Nov 14, 2015 01:41

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}},
         },
 

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

Re: Texture and colorize

by mahmutelmas06 » Sat Nov 14, 2015 15:22

Thank you very much.
My Mods:

Beverage
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 7 guests

cron