//!tgscript v1 //! script name=WinBanner //! region graph //! node 1 OnUpdate pos=(60,80) export function onUpdate(ctx) { //! node 2 GetGlobal pos=(260,120) global=won const n2_value = ctx.getGlobal("won"); //! node 3 ConstNumber pos=(260,240) const n3_value = 0.50; //! node 4 Greater pos=(460,120) const n4_out = (n2_value > n3_value); //! node 5 Branch pos=(660,80) if (n4_out) { //! node 6 FindEntity pos=(660,240) entity=Camera const n6_value = ctx.findEntity("Camera"); //! node 7 GetEntityPosition2D pos=(860,240) const n7_value = ctx.getEntityPosition2D(n6_value); //! node 8 ConstVec2 pos=(860,360) const n8_value = ctx.vec2(0.00, 1.00); //! node 9 AddVec2 pos=(1060,240) const n9_out = ctx.addVec2(n7_value, n8_value); //! node 10 SetPosition2D pos=(1260,80) ctx.setPosition2D(n9_out); } } //! endregion