mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-13 13:35:30 -04:00
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:
parent
e9e2866863
commit
bb525b0b7f
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue