Golden Gui Posted February 21, 2019 Share Posted February 21, 2019 (edited) Hello, I'm following the Space Invaders tutorial, during the collision management part of the tutorial i'm facing an issue when the onCollision event is reached. The removeChild from the inherited object isn't recognized. I didn't found the solution yet. Hoping you can help me. Thanks in advance. Edited February 21, 2019 by Golden Gui adding more details about the issue Quote Link to comment Share on other sites More sharing options...
sistemlogikadigital Posted February 22, 2019 Share Posted February 22, 2019 it seems game.Playscreen.pnjManager doesnt have method with name removeChild(), what is parent's "other"? you should remove from the parent Quote Link to comment Share on other sites More sharing options...
Golden Gui Posted February 22, 2019 Author Share Posted February 22, 2019 i tried to implement the method who call the method from the parent on pnjManager but the result is actually the same: removeChild: function (child) { this._super(me.Container, "removeChild", [child]); this.updateChildBound(); }, Quote Link to comment Share on other sites More sharing options...
sistemlogikadigital Posted February 23, 2019 Share Posted February 23, 2019 do you already instantiate game.Playscreen.pnjManager? probably game.Playscreen.pnjManager is null so you have to instantiate first Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.