need to spawn objects depending on a user input. That means, e.g. if the user enters "Goomba" in a textbox, i want to spawn a Goomba, but if the user enters "Koopa" i want to spawn a Koopa. (just examples)
Is that posssible to spawn a object from an expression instead of a dropdown menu?
You can compare the text.
is there no better solution like spawn object from text in Construct 3 or so?
You can create objects by name, like:
+ TextInput: On text changed
-> System: Create object TextInput.Text on layer 0 at (0, 0)
You can avoid problems with uppercase or lowercase if you use upercase and lowercase. For example:
and give the objects lowercase names.
Edit: This works only in Construct 3
Develop games in your browser. Powerful, performant & highly capable.
If you are limited to C2, you can use a function to create something by name. Only thing is, you'll have to map each object to a particular string yourself.
You can also use rexrainbow nickname plugin/behavior, if you're open to 3rd party plugins.