at time only one object can be taken in “objects” variable, if we have more than one then how to access through JavaScript API
like this
No, you can’t, but there are functions to select the objects from scene methods, of course these objects will be not selected by previous conditions so every object will be taken account at first
Scene methods: http://4ian.github.io/GD-Documentation/GDJS%20Runtime%20Documentation/classes/gdjs.RuntimeScene.html
Note that you can use a group of objects if needed