0
Answered

Random Idle animation

lazy fly 4 months ago in Game Creator updated by Marti (Lead Developer) 4 months ago 2

Hi,

I would like to add more than one idle animation to my character. Is there a trigger for 'no movement' to change state? Also i would like to play these idle animations randomly.

greetings

Unity version:
Game Creator version:

Answer

+1
Answer

There is a Condition for Character/Player "is Idle". You can use this. You will need to decide how to execute the Condition, perhaps if it is a desktop game, on key up, you can check the condition to see if the character is idle. Or just set a timer to check it once per second using an Action, call condition, wait for 1 second, restart Action. Just be careful of performance.

As for the Randomiser, you can use a variable, set it randomly, and index the idle animation from this. Or you can wait a few days and get the Action Pack 1, which has several Randomise Actions to call actions. It is currently waiting on Unity Approval.

There is more than one way to do this, GC has the functions, you just need to figure out what is the best way for you.

Hope this helps.

+1
Answer

There is a Condition for Character/Player "is Idle". You can use this. You will need to decide how to execute the Condition, perhaps if it is a desktop game, on key up, you can check the condition to see if the character is idle. Or just set a timer to check it once per second using an Action, call condition, wait for 1 second, restart Action. Just be careful of performance.

As for the Randomiser, you can use a variable, set it randomly, and index the idle animation from this. Or you can wait a few days and get the Action Pack 1, which has several Randomise Actions to call actions. It is currently waiting on Unity Approval.

There is more than one way to do this, GC has the functions, you just need to figure out what is the best way for you.

Hope this helps.