Hi,
I'm using an array to store numbers. An object will get a number from the array slot that is based on current biome and season of the level. There's also a random number that gets generated at the beginning of every day in the game. There are some seasons that I would like the object to use that randomly generated value instead of a static number. Is it possible to store a "command" in the array slot that will make the object to use that randomly generated variable instead? Sorry if this is confusing.
This is an example project that tries to illustrate what I want to do:
dropbox.com/s/4szc39sdcfyvfec/ArrayDataTest.c3p
just check the value in the array before you set the text output...
if it is a code you want to behave differently, make it do what you want, else output the array value the way you were.
Develop games in your browser. Powerful, performant & highly capable.
Yes it seems obvious now. Thanks.
Another solution I thought was setting the array data to the variable when season = 2, before loading the data.
However, it is not possible to make the array data itself act like an equation or function?