From e8bf3fb6885b09da88376a32da6c23ce8f6f1925 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 12 Nov 2017 14:00:30 +0100 Subject: [PATCH] Initial Commit: CC - Flame Particle Process - Forward Only (1jcd3sg3gh.js) --- 1jcd3sg3gh.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 1jcd3sg3gh.js diff --git a/1jcd3sg3gh.js b/1jcd3sg3gh.js new file mode 100644 index 0000000..0285382 --- /dev/null +++ b/1jcd3sg3gh.js @@ -0,0 +1,32 @@ +if (!this.entityLoaded) { + return; +} + +var texture = GameLib.EntityManager.Instance.findComponentById('etff15p48k'); + +if (!this.initialized) { + texture.offset.x = 0; + texture.offset.y = 0; + texture.updateInstance(); + this.initialized = true; + return; +} + +texture.offset.x += 0.1; +if (texture.offset.x >= 0.9) { + if (texture.offset.y >= 0.8) { + texture.offset.x = 0; + texture.offset.y = 0; + } else { + texture.offset.x = 0; + texture.offset.y += 0.2; + } +} + +texture.instance.offset.x = texture.offset.x; +texture.instance.offset.y = texture.offset.y; + +//texture.updateInstance(); + +return null; +//@ sourceURL=textureBeforeRender.js \ No newline at end of file