KreNtal Posted January 12, 2023 Share Posted January 12, 2023 (edited) So here's a little demo to show the problem: https://codepen.io/KreNtal/pen/VwBbVjV Basically when the last sprite is destroyed the new last sprite inside the container moves some pixels back. Why is this happening? How can I avoid it? Some clues will be really much appreciated, thanks. Edited January 12, 2023 by KreNtal Quote Link to comment Share on other sites More sharing options...
KreNtal Posted January 12, 2023 Author Share Posted January 12, 2023 So I'm just dumb, all I had to do was adding newTruck on index 0 with: addChildAt(newTruck, 0); Sorry for wasting your time. 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.