--
You received this message because you are subscribed to the Google Groups "ReplicaIsland Coding Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to replica-island-coding...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to replica-island-coding-community+unsubscribe@googlegroups.com.
Did you ever figure this out?
I'll be looking at this same thing tonight, so if I figure something out, I'll post again.
So I've tried a few things unfortunately with no success. I'm specifically trying to render a character whose GameObject size is 64 X 64 with a texture that is 128 X 128. What I see is the top left 1/4 of the image (the top left 64X64). I tried playing with the texture size, as well as adding a call to bitmap.setCrop(etc) to the SpriteComponent update method, but that had no effect, even with differing numbers.I don't yet understand how the textures are mapped onto the drawable area. I'll keep digging, but in the meantime has anyone had any success on this?
--
You received this message because you are subscribed to the Google Groups "ReplicaIsland Coding Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to replica-island-coding...@googlegroups.com.
public final void setFlip(boolean horzFlip, boolean vertFlip){ if (this.mTexture != null) { setCrop(horzFlip ? this.mTexture.width : 0, vertFlip ? 0 : this.mTexture.height, horzFlip ? -this.mTexture.width : this.mTexture.width, vertFlip ? -this.mTexture.height : this.mTexture.height); } else { setCrop(horzFlip ? mWidth : 0, vertFlip ? 0 : mHeight, horzFlip ? -mWidth : mWidth, vertFlip ? -mHeight : mHeight); }
}
To unsubscribe from this group and stop receiving emails from it, send an email to replica-island-coding-community+unsubscribe@googlegroups.com.