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