Flags now animate in using the appear action. (Still need to fix it to make it not 'appear' when it's just a cursor change.)

This commit is contained in:
Nick Winter 2015-08-08 08:23:02 -07:00
parent e9e2866863
commit bb525b0b7f

View file

@ -31,4 +31,6 @@ module.exports = class FlagLank extends IndieLank
toggleCursor: (to) ->
@options.isCursor = to
@thang.alpha = if to then 0.33 else 0.67 # 1.0 is for flags that have been placed
#@thang.action = if to then 'idle' else 'appear' # TODO: why doesn't this work? Does it not render the action or something?
@thang.action = 'appear'
@updateAlpha()