1
0
Fork 0

Make TNT blink totally white

objects
Wuzzy 2017-01-16 15:09:14 +01:00
parent cc119a717c
commit a333c5a177
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ local TNT = {
function TNT:on_activate(staticdata) function TNT:on_activate(staticdata)
self.object:setvelocity({x=0, y=4, z=0}) self.object:setvelocity({x=0, y=4, z=0})
self.object:setacceleration({x=0, y=-10, z=0}) self.object:setacceleration({x=0, y=-10, z=0})
self.object:settexturemod("^[brighten") self.object:settexturemod("^tnt_blink.png")
end end
function TNT:on_step(dtime) function TNT:on_step(dtime)
@ -85,7 +85,7 @@ function TNT:on_step(dtime)
if self.blinkstatus then if self.blinkstatus then
self.object:settexturemod("") self.object:settexturemod("")
else else
self.object:settexturemod("^[brighten") self.object:settexturemod("^tnt_blink.png")
end end
self.blinkstatus = not self.blinkstatus self.blinkstatus = not self.blinkstatus
end end

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B