load props uniquely

This commit is contained in:
2022-01-06 12:24:45 -07:00
parent 9b38474bf3
commit cd4af31d6f

View File

@@ -35,7 +35,7 @@
(method newFlxProp [name path]
(let [propSprite (new FlxSprite 0 0)]
(propSprite.loadGraphic path)
(propSprite.loadGraphic path false 0 0 true) // Load props uniquely because they can be drawn on
(newProp name propSprite)))
(method :Void update [:Float elapsed]