Hi, There is an error/crash that happens whenever I modify a global variable from scene 1 and then delete an object from a group in scene 2 while using the global variable.
TypeError: Cannot read properties of null (reading 'getDrawableX')
at s.putAroundObject (file:///tmp/GDTMP-1000/preview/runtimeobject.js:1:17841)
at Object.gdjs.GameCode.eventsList15 (file:///tmp/GDTMP-1000/preview/code0.js:814:53)
at Object.gdjs.GameCode.eventsList21 (file:///tmp/GDTMP-1000/preview/code0.js:1103:98)
at c.gdjs.GameCode.func [as _eventsFunction] (file:///tmp/GDTMP-1000/preview/code0.js:1174:15)
at c.renderAndStep (file:///tmp/GDTMP-1000/preview/runtimescene.js:1:5067)
at a.step (file:///tmp/GDTMP-1000/preview/scenestack.js:1:409)
at i (file:///tmp/GDTMP-1000/preview/pixi-renderers/runtimegame-pixi-renderer.js:1:9624)
I’m using a custom collision box:
I have 3 players in scene 2, and all of them use a custom collision box, the collision boxes are not exactly the same but I have tried to make them about exact.
This photo shows the collision box for player 3 (about the same collision box applies to the other players):
There is only one frame in each player, no animations, or other frames in any animations.
I’m already using the manual collision boxes, so I tried enabling the default one instead, and it worked,
but why did this issue relate to collision boxes? Why, if the time is set to such a specific value, why the collisions not work? Also, I still want to use custom collisions, the defaults are too big.
I don’t have any problem sharing you the code of the game, but I don’t know how or if you actually need it.