Welcome to the Game Creator support forum! 

This a place to ask questions, discuss ideas and report bugs. Please, provide your Unity and Game Creator versions as well as clear reproduction steps when opening a topic and full console logs.


Can I use Formulas in some actions?

赵西瓜 1 month ago in Stats updated by Marti (Lead Developer) 1 month ago 3

For example:wait (Formulas ) second


Unfortunately, that's not possible. However, you can use the Math Variable action, which works very similarly to the Formulas. Then, all you have to do is use a Local Variable to store the result of your operation and use a Wait action with that Local Variable.

You may need to use this action: https://hub.gamecreator.io/content/item/q5PnfMTZPj6TyluCS2Uz, which lets you wait for a certain amount of time based on a variable's value.



Stat Modifiers Order

Kejo 1 month ago in Stats updated by Marti (Lead Developer) 1 month ago 2

Hi, I couldn't find details on the order on which the stat modifiers are applied other than that it is "automatically handled for you". What determines the order in which stat modifiers are applied to a stat? Also, it there a way to set the order manually?


Correct. However, I would like to highlight that "Multiplier" operations are performed first and then the additive operations. That's why the order doesn't matter: Because adding X + Y + Z is the same as Z + Y + X.

Because multiplications and sums are performed separately in strict order, the results will always be consistent. Cheers!

Searching answer

Attribute UI not updating when using global variable

Sander 4 months ago in Stats updated by Marti (Lead Developer) 4 months ago 3

I've made a simple UI with the stats of the enemy my mouse is hovering over. When using target game object and dragging the object in, the stats work. However, when using global variables, it doesn't. I have a global variable with the game object that was selected. 


Character instantiates with a 0 Attribute value

Crispy 5 months ago in Stats updated by Marti (Lead Developer) 5 months ago 1

After killing a zombie, any further zombies that spawn will spawn in with 0 health.


The Actions I'm using for decreasing health:

Marti (Lead Developer) 5 months ago

This is probably because the Stats automatically saves the state of the prefab of ZombieFemale when it is destroyed. Instantiating new ones reloads the previous state, which was 0 at the moment, because all prefabs and prefab instances share the same ID.

We'll be adding a "Save" checkbox under the Stats component on the next update that you should untick. This will disable saving and loading the previous State values.


update Stats not updating Attribute UI

Alienmadness 5 months ago in Stats updated by Marti (Lead Developer) 5 months ago 7

i just updated the stats to the newest version.  after doing so, i had to go through and fix a few things.. 

i have an HP UI and when the stats value HP goes down, i can see the change in the player component, but the Attribute UI is not updating.

here is example of the UI component

Here is an example of the Stats component (in process)

Marti (Lead Developer) 5 months ago

Aha! Sorry I didn't see this in the first message you posted. In the Attribute UI component, you have the Smooth Transition Up and Smooth Transition down properties set to true. This means that Game Creator will try to progressively move the health bar from its current value to the next.

However, you have also a Transition Delay of 0.2. This means that the bar won't change until there's a window of 0.2 seconds where the attribute hasn't changed its values.

You can set the Transition Delay to 0.0 or uncheck the Smooth Transition Up/Down properties and it should work fine.


A bag slots modifier stat

SubtleTechnology 8 months ago in Stats updated by Marti (Lead Developer) 8 months ago 1

What is the best way to limit the number of inventory slots based on a Stat like "bagslots" that will be increased and decreased by equipped items? 

I already have the stat in place and equipping/removing the item changes the stat. What would be the best place to implement something that limits the maximum number of item slots they have based on that stat?  For instance if the stat is 10, they can only pickup 10 items.

For simplicity I would just not allow them to remove the item that changes the stat so I don't have to deal with forcing them to drop items etc. Maybe not even let them unequip it.

Marti (Lead Developer) 8 months ago

I'm afraid that's not possible at the moment. The amount of a stack of items in your inventory is a constant value.