I have a bowed solid for the player to walk on (a bridge that is rounded rather than flat). The player moves along the solid, but I would like the player to also change its angle based on the current angle of the solid. It is an animal crossing a bridge. Can't quite figure out how to pull this off. Any help would be appreciated.
Develop games in your browser. Powerful, performant & highly capable.
With bowed solid you mean 1 sprite, or is the bridge made of several sprites at angles?
Just one sprite
If it were more sprites you could get the angle of them checking overlap at offset..
I'd recommend either building the bridge out of seperate objects or use invisible objects to get the angle and just using the bridge as a picture..
Another option would just be to code the angle based on the position..
Thanks for the info. Worst case, I will make invisible sprites. The "angle based on position" thought, how would I accomplish that?