i'm creating objects just by name, with which comes from a list of strings
how do i check if that object name doesn't exist within the project?
Compare two values;
Sprite.count equal to 0 --> set text to "Object not exist"
how do i reference the newly created object to access its sprite.count?
Develop games in your browser. Powerful, performant & highly capable.
You can do this with a bit of scripting:
if (runtime.objects["SpriteName"] == undefined) { console.log("Object name doesn't exist") }
Use runtime.globalVars.varName or localVars.varName to exchange values between the script and events.
If there is any created one you can use trigger 'On created' combined with system > 'Pick all object' (if necessary) then set text to Sprite.Count.