- Joined
- Mar 28, 2016
- Messages
- 1,623
- Reaction score
- 1,439
- First Language
- French
- Primarily Uses
- RMMV
Hi
What would be the most effective way, for find a child or (sprite) in the _pictureContainer ?
The problem is that I have a lot of picture and their CHILD id are messy.!
I use the filter() method, but it is very heavy in resource, especially that can not BREAK; after the first result. !
Would there be? a method to quickly get the child's position ? or a way to stored Childposition in the Game Screen constructor with is INDEX ???
I would have liked, use the find () method, but it seem only ECMAScript 6
What are your tips and advice?
and do existe something in a class , to do example
.getChildAt() ?
thank a lot for help
What would be the most effective way, for find a child or (sprite) in the _pictureContainer ?
PHP:
SceneManager._scene._spriteset._pictureContainer.children
I use the filter() method, but it is very heavy in resource, especially that can not BREAK; after the first result. !
PHP:
var pictureChild = SceneManager._scene._spriteset._pictureContainer.children.filter(function(pic) { return pic._pictureId === id; });
pictureChild.children.removeChildren(); // remove all children inside this sprite picture
I would have liked, use the find () method, but it seem only ECMAScript 6
What are your tips and advice?
and do existe something in a class , to do example
.getChildAt() ?
thank a lot for help
Last edited:


