BlueGit

timfa frameworkv3

logics

timfa wsadhelios · pushed by timfa

Authored 2022-10-17 · 4 years ago

Hash
26b77badf25c4ef421caf3269a8e02c1a48fb321
Parent
f4881eac
1 file changed +2 −2
framework/engine/objectComponents/renderer.js +2 −2
@@ -21,7 +21,7 @@ class Renderer
21 21 {
22 22 if(this.cycle)
23 23 {
24 if(this.cycle.cycleSpeed && this.cycle.cycleSpeed == -1)
24 if(!this.cycle.cycleSpeed || this.cycle.cycleSpeed == -1)
25 25 {
26 26 this.subImage = this.cycle.default;
27 27 this.cycle.current = this.cycle.default;
@@ -95,7 +95,7 @@ class Renderer
95 95 );
96 96 }
97 97
98 setAnimation(label, defaultIndex, cycleSpeed)
98 setAnimation(label, defaultIndex, cycleSpeed = -1)
99 99 {
100 100 if(this.cycle)
101 101 {
@@ -21,7 +21,7 @@ class Renderer
21 {
21 {
22 if(this.cycle)
22 if(this.cycle)
23 {
23 {
24 if(this.cycle.cycleSpeed && this.cycle.cycleSpeed == -1)
24 if(!this.cycle.cycleSpeed || this.cycle.cycleSpeed == -1)
25 {
25 {
26 this.subImage = this.cycle.default;
26 this.subImage = this.cycle.default;
27 this.cycle.current = this.cycle.default;
27 this.cycle.current = this.cycle.default;
@@ -95,7 +95,7 @@ class Renderer
95 );
95 );
96 }
96 }
97
97
98 setAnimation(label, defaultIndex, cycleSpeed)
98 setAnimation(label, defaultIndex, cycleSpeed = -1)
99 {
99 {
100 if(this.cycle)
100 if(this.cycle)
101 {
101 {