Hi guys, I'm really new in all this thing, I'm trying to learn with Playmaker, I have a sprite button A and a Sprite button B, I want to start with sprite button A, click a key, the sprite change to button B, wait 1 sec and return to button A. Do you guys know how to do it?
You'll likely have better luck on the official Playmaker forums: https://hutonggames.com/playmakerforum/index.php
Code (CSharp): Private float timer; Public GameObject ObjA,ObjB; Void Start() { ObjA.setactive(true); ObjB.setactive(false) } Void Update() { MakeVisble(); If(timer > 0.1f) { timer -=Time.deltatime; } If(timer < 0.1f) Timer = 0.0f; } // Void MakeVisble () { If(timer == 0) { If(input.GetKey(key code.A)) { ObjA.setactive(false); ObjA.setactive(true); Timer = 1; } } }
Don't try learn PlayMaker in 2020, especially don't try to learn it in 2021. Use Unity's Visual Scripting instead xD