R
Ragis
Guest
So imagine a square moving on a grid, one tile at once, up, down, left or right. Easy enough.
Except it's not a square, but a cube - or rather a die - each of its sides is different.
When the die moves, it doesn't slide, but simply rolls to another of its sides.
It sounds easy, but the die rotates in three axes, and I cannot figure out how to code that.
For now, I just need it working for 6 side sprites, I'll take care of animations later.
If someone could point me in the right direction I would be grateful
Except it's not a square, but a cube - or rather a die - each of its sides is different.
When the die moves, it doesn't slide, but simply rolls to another of its sides.
It sounds easy, but the die rotates in three axes, and I cannot figure out how to code that.
For now, I just need it working for 6 side sprites, I'll take care of animations later.
If someone could point me in the right direction I would be grateful
Last edited by a moderator: