Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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:
Develop games in your browser. Powerful, performant & highly capable.
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.
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?