From c5431444ae5f3bf1b4c729921aa67817e69bd12a Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 12 Nov 2017 13:07:13 +0100 Subject: [PATCH] Initial Commit: Flame Particle Process - Forward Only (vaq8lxuek1.js) --- vaq8lxuek1.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 vaq8lxuek1.js diff --git a/vaq8lxuek1.js b/vaq8lxuek1.js new file mode 100644 index 0000000..c22d2a2 --- /dev/null +++ b/vaq8lxuek1.js @@ -0,0 +1,25 @@ +var texture = GameLib.EntityManager.Instance.findComponentById('gm3fvv45dl'); + +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.updateInstance(); + +return null; +//@ sourceURL=textureBeforeRender.js \ No newline at end of file