Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Something I never understood

Hey guys!
I just got myself caught in a problem some time ago which i don't really understand that just freaks me off and makes me wanna explode so that i just have to ask right now.
why the hell is a character's real_x coordinate 128* the tileset x coordinate and not the 32* (20 * 32 = 640: the screen width, 20 * 128 = 2560... WTF)???

thought someone could help me out with this,
Kisses :-*
 
I'm fairly certain it's so if a character moves less than a pixel in a direction per frame they will still move smoothly, without using decimal numbers for real locations.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top