How does one make their sprite flash white?
I’ve tried this…
function update(self, dt)
if self.flash then
go.set("#sprite", "tint", vmath.vector4(250, 250, 250, 1))
self.flashTimer = self.flashTimer + dt
if self.flashTimer >= self.flashTime then
self.flashTimer = 0
self.flash = false
go.set("#sprite", "tint", vmath.vector4(1,1,1,1))
end
end
end
Which does work, but the sprite flashes uh…purple?