Fade out bubble particles
This commit is contained in:
parent
445af4e4b9
commit
135bf77d5a
@ -34,25 +34,32 @@ local function step(dtime)
|
|||||||
{
|
{
|
||||||
amount = 2,
|
amount = 2,
|
||||||
time = 0.1,
|
time = 0.1,
|
||||||
minpos = {
|
pos = {
|
||||||
x = head_pos.x - 0.2,
|
min = {
|
||||||
y = head_pos.y - 0.3,
|
x = head_pos.x - 0.2,
|
||||||
z = head_pos.z - 0.3
|
y = head_pos.y - 0.3,
|
||||||
|
z = head_pos.z - 0.3
|
||||||
|
},
|
||||||
|
max = {
|
||||||
|
x = head_pos.x + 0.3,
|
||||||
|
y = head_pos.y + 0.3,
|
||||||
|
z = head_pos.z + 0.3
|
||||||
|
},
|
||||||
},
|
},
|
||||||
maxpos = {
|
vel = {
|
||||||
x = head_pos.x + 0.3,
|
min = {x = -0.5, y = 0, z = -0.5},
|
||||||
y = head_pos.y + 0.3,
|
max = {x = 0.5, y = 0, z = 0.5},
|
||||||
z = head_pos.z + 0.3
|
|
||||||
},
|
},
|
||||||
minvel = {x = -0.5, y = 0, z = -0.5},
|
acc = {
|
||||||
maxvel = {x = 0.5, y = 0, z = 0.5},
|
min = {x = -0.5, y = 4, z = -0.5},
|
||||||
minacc = {x = -0.5, y = 4, z = -0.5},
|
max = {x = 0.5, y = 1, z = 0.5},
|
||||||
maxacc = {x = 0.5, y = 1, z = 0.5},
|
},
|
||||||
minexptime = 0.3,
|
exptime = {min=0.3,max=0.8},
|
||||||
maxexptime = 0.8,
|
size = {min=0.7, max=2.4},
|
||||||
minsize = 0.7,
|
texture = {
|
||||||
maxsize = 2.4,
|
name = "bubble.png",
|
||||||
texture = "bubble.png"
|
alpha_tween = { 1, 0, start = 0.75 }
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.after(0.15, function(name)
|
minetest.after(0.15, function(name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user