Make TNT blink totally white

This commit is contained in:
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)
self.object:setvelocity({x=0, y=4, z=0})
self.object:setacceleration({x=0, y=-10, z=0})
self.object:settexturemod("^[brighten")
self.object:settexturemod("^tnt_blink.png")
end
function TNT:on_step(dtime)
@ -85,7 +85,7 @@ function TNT:on_step(dtime)
if self.blinkstatus then
self.object:settexturemod("")
else
self.object:settexturemod("^[brighten")
self.object:settexturemod("^tnt_blink.png")
end
self.blinkstatus = not self.blinkstatus
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B