Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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 noticed that one of my behaviors wasn't working when minified, so I'm trying to make it work when minified.
I'm trying to compare the name of an Families:
this.inst["type"].container[c].families[f]["name"] === familyname[/code:10vkg96t]
The objname is a string parameter passed to a function in the runtime.js
The problem is that the ["name"] value gets changed to some random string, so the value I pass in never equals the family name.
Is there some way to get this to work?
My goal is to be able to upload the game to the Arcade, but one of the requirements is that it must be minified.
Develop games in your browser. Powerful, performant & highly capable.
I made a behavior to return the Family name based on an index value you pass to it for the family array..
Kind of lame, but it works.
If anyone knows of a better way, let me know.