How to pass more than one object to javascript event

I am very new to gdevelop. I want to pass two objects to a javascript event. If I pass only one, everything works great. However, I need to pass two objects, but if I separated by commas it shows an error:

Capture
So how can I pass more than one object?
Thanks!!

1 Like

You need to use object groups to do this.
In scene editor open “Object Groups” panel
image

And

image

I’am happy to see another user use JSevent !
You can take a look on theses extensions, all use Javascript

  • Gamepads
  • Clipboard
  • Extend variable support
  • Time formatting

You will need this too :
http://4ian.github.io/GD-Documentation/GDJS%20Runtime%20Documentation/index.html

3 Likes