File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
engine/modules/entities/src/main/resources/view/entity-module Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ export class Entity {
30
30
}
31
31
}
32
32
33
+ setHidden ( hide ) {
34
+ this . hide = hide
35
+ this . container . visible = this . currentState . visible && ! this . hide
36
+ }
37
+
33
38
addState ( t , params , frame ) {
34
39
if ( ! this . states [ frame ] ) {
35
40
this . states [ frame ] = [ ]
@@ -143,7 +148,7 @@ export class Entity {
143
148
this . container . position . set ( state . x * globalData . coeff , state . y * globalData . coeff )
144
149
this . container . scale . set ( state . scaleX || eps , state . scaleY || eps )
145
150
this . container . rotation = state . rotation
146
- this . container . _visible = state . visible
151
+ this . container . _visible = state . visible && ! this . hide
147
152
}
148
153
149
154
static createState ( time = 1 , values = { } , curve = { } ) {
You can’t perform that action at this time.
0 commit comments