-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tilemap.copy() Bug #6188
Comments
I fixed? it by having |
Sorry kinda new to github etiquette. This was my fix `function myGetTilesWithin(tileX, tileY, width, height, layer) {
}` I just copied the phaser not sure why the first part of the large codeblock wont go into the code block |
Yeah it happens because the |
Version
Description
When trying to copy more then half the map
tilemap.copy()
does not work as expected. It works in one direction but not the other.If the map is 5x5 and you want to move columns 2-5 to the left one it works fine. If you want to move columns 1-4 to the right one it just replicates column 1 over and over.
This happens when you pass the half way point on a map. So on an 11x11 moving tiles 1-5 to over to column 6 works perfectly fine. Moving columns 1-6 over to column 5 is when it starts to mess up.
Example Test Code
on an 11x11 map
this.tmap.copy(0, 0, 5, 25, 6, 0);
works.
this.tmap.copy(0, 0, 6, 25, 5, 0);
where issues begin
Additional Information
The text was updated successfully, but these errors were encountered: