Initiate Mage
- Joined
- Dec 1, 2021
- Messages
- 1
- Reaction score
- 0
Hello,
I'm trying to simply align the sprites of Habbo in the unity game engine. Just a way to improve and learn. I have the extracted png images and a json file with information on each sprite in the game. It looks something like this:
I don't understand what's going on here. What is the x and y referring to? The width and height is the size of the sprite. How does the offset work? What does it offset from?
Solved the problem, i dont need to worry about the x or y or any information other than the offset. I can just offset it from the body position and it seems to match. Just need to change worldspace to screen space and offset from body!
I'm trying to simply align the sprites of Habbo in the unity game engine. Just a way to improve and learn. I have the extracted png images and a json file with information on each sprite in the game. It looks something like this:
Code:
"h_std_bd_1_0_0": {
"x": 179,
"y": 0,
"width": 25, "
height": 56,
"offsetX": -20,
"offsetY": 49 },
I don't understand what's going on here. What is the x and y referring to? The width and height is the size of the sprite. How does the offset work? What does it offset from?
Solved the problem, i dont need to worry about the x or y or any information other than the offset. I can just offset it from the body position and it seems to match. Just need to change worldspace to screen space and offset from body!
Last edited: