0
Answered

Animation issues

geogebra04 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 1

Hi everyone, I just started to learn Unity and using Game Creator. I am facing a problem that I have set inactive a gameobject "WFX_RIFLE3" at start.

Then i set a trigger when i press left mouse bouton, it becomes active. But when i release the mouse bouton, it is still active.

Thx in advance for helps. 

Unity version:
2019.3.4f1
Game Creator version:
1.1.6
Answered

Hi! And welcome to Game Creator. If you want to activate it when the mouse is released, you'll need to use another Trigger called "On Mouse Up" and set active that object.

So the whole set would look like:

Trigger "On Mouse Left Click" => Set Inactive

Trigger "On Mouse Up" => Set Active

Hope this helps!