Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
Thus setting Sonic's angle to 0. (One more thing, I'm using hex angles, 0 to 256, just like the Genesis)
Yes, yes! I figured it out! I had to add 40 to the PositionToTileY(Sonic.Y) So like this: PositionToTileY(Sonic.Y + 40)