Hey, all. Already back to the forums asking for help hahaha
I’m toying around with making a remaster of Dasher: Arcade, and my adorable little astronaut has run into a problem: Whenever I attach the sprite made for its eyes via a physics joint, Flowlab crashes. This is both very bad for my game, and Dasher’s 20/20 vision. Any help would be greatly appreciated. A video of the eyes’ behaviours is shown below, as well as screenshots of every game behaviour so far.
The gremlin causing the issue. The game runs perfectly fine, so long as the eyes and Dasher are not attached. This has been an issue for the attach behaviour, as well, for whatever reason. I have to use a physics joint regardless, if I want the eyes’ to do as I wish.
As mentioned above; the attacher has also crashed the game. Also, the attacher limits object behaviours, which would then disable the eyes’ ability to move around and blink. Both of which I have decided are essential to the game’s presentation and charm
The reason this is crashing (probably) is because you have a physics joint attaching itself, so it will run the code again and attach another one. And another one, in an infinite loop, where it eventually crashes.
Also, providing a game link would make it way easier to solve your problem.
It is an infinite loop because you made the player be the parent for the eyes. This means all code running in the parent object is also running in the child object. So the eyes are seeing the code to add a joint for eyes, and creating an infinite loop.
Was. @browngr was my original account from back in the day. Used to do a lot of AI stuff, tried to develop really big story games, but they were huge commitments so I never managed to complete any of them. As far as technological accomplishments went, though, they weren’t bad.