Make TNT blink totally white
This commit is contained in:
parent
cc119a717c
commit
a333c5a177
|
@ -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
|
||||
|
|
BIN
mods/tnt/textures/tnt_blink.png
Normal file
BIN
mods/tnt/textures/tnt_blink.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 151 B |
Loading…
Reference in New Issue
Block a user