Hello,
I’m working on a snake game, and I’m having this issue:
As you can see I need a way to rotate the rects of my snake…
Any help please? Thanks ![]()
Hello,
I’m working on a snake game, and I’m having this issue:
As you can see I need a way to rotate the rects of my snake…
Any help please? Thanks ![]()
Swap the width and height with each other, then flip the texture.
width and Height are the same 20 20 ![]()
Just flip the texture then ![]()
Uhm sorry mate I’m not able to understand what you mean
Can you write a minimal example ?
Thank you for the help
Oh got it ! Thank you very much ![]()
EDIT: Well, I’m still having a problem to achieve some direction, like for the head I’m not able to set it to look down…
Take your snakes body texture and flip it 90 degrees in your graphics application - when a part of the snakes body goes vertical, switch that body part to the flipped texture.
Well I can’t use the graphical application because I’m working with ongui textures
Have 4 versions of each texture, pointing north, east, south and west, and switch between them depending on the direction the body part is supposed to be facing.
Yep I think that this is the only solution to my problem… Ok mate thanks a lot for your help ! ![]()