Topic was automatically imported from the old Question2Answer platform.
Asked By
Nahumus
I’m making a game which is simillar to the Rush Hour puzzle game, I want to split a texture into some parts, and apply it to different textures.
My texture is on a 1:N ratio and I want to split it on N sprites.
for example, I have the car image below:
As it is a 1:2 ratio, I want to apply it on 2 different sprites, as represented here:
I would like to do it all through the code as I want the user to be able to add their own car images, I’ve heard about atlas but I don’t understand how can I use it only through code.