So, I'm making a Sonic Engine, and I'm storing all of the angle values in an array. My plan is when Sonic Collides onto ground, it would get the Tile ID, and use it to get a value from the array. The value it gets from the array becomes Sonic's new angle. How would I do this?
I've tried 3 ideas, but all of them return 0.
Thus setting Sonic's angle to 0. (One more thing, I'm using hex angles, 0 to 256, just like the Genesis)
Develop games in your browser. Powerful, performant & highly capable.
Yes, yes! I figured it out! I had to add 40 to the PositionToTileY(Sonic.Y) So like this: PositionToTileY(Sonic.Y + 40)