Seems I've run into a small dilemma in making one of my latest plugins...
I'm using a bitmap of a spritesheet to create a bitmap that has multiple of the same part of the spritesheet, after the created bitmap is made then if the height of the source bitmap is 288px or larger then of course the created bitmap becomes too large and I receive the following error in the console and where the sprite is supposed to be drawn at it is then just black boxes
Never thought about this becoming an issue before but it does make perfect sense.. just was wondering if anyone had any tips of getting around this.
As I was typing this post I had just thought of a way around it by making the main sprite then just contain children sprites instead of creating one big bitmap, but doing that method to the existing code I already have is going to take a lot
sooo maybe there is another good way?
I'm using a bitmap of a spritesheet to create a bitmap that has multiple of the same part of the spritesheet, after the created bitmap is made then if the height of the source bitmap is 288px or larger then of course the created bitmap becomes too large and I receive the following error in the console and where the sprite is supposed to be drawn at it is then just black boxes
Code:
WebGL: INVALID_VALUE: texImage2D: width or height out of range
Never thought about this becoming an issue before but it does make perfect sense.. just was wondering if anyone had any tips of getting around this.
As I was typing this post I had just thought of a way around it by making the main sprite then just contain children sprites instead of creating one big bitmap, but doing that method to the existing code I already have is going to take a lot
sooo maybe there is another good way?