Replace opacity = X with set_opacity(X) so that the lighting system can update propertly.

This commit is contained in:
Leshana
2017-04-11 22:36:48 -04:00
parent 75cc189723
commit 45058136e2
7 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -162,9 +162,9 @@
smoke.pixel_x = -32 + rand(-8, 8)
smoke.pixel_y = -32 + rand(-8, 8)
walk_to(smoke, T)
smoke.opacity = 1 //switching opacity on after the smoke has spawned, and then
smoke.set_opacity(1) //switching opacity on after the smoke has spawned, and then
sleep(150+rand(0,20)) // turning it off before it is deleted results in cleaner
smoke.opacity = 0 // lighting and view range updates
smoke.set_opacity(0) // lighting and view range updates
fadeOut(smoke)
qdel(src)