8 direction movement not right, sprite jumps

This forum is currently in read-only mode.
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • And you want to Create games/programs?

    No offense but whoever said you need to be great at maths for programming, well, i am living proof you do not, i have made this month alone �100 off my programming skills in php....but lets not talk about all that.

    Thanks for the input guys, it's working nicely now.

  • I dont know much about php but it can't make games right? <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Actually it can make games...obviously you haven't been on the internet for long, there are thousands of php games!

  • Since 2001 <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" />, and like i said "I dont know much about php..." but you were creating games in php?

  • I once made a text based RPG game in php/mysql yes, sold it for �200 as well

  • Uh-oh, mom and dad are fighting again

    Oh and just an FYI, there's nothing inverted about y- being up and y+ being down. This is how pixel coordinates have always worked since cavemen chiseled the first raster graphics into the granite walls of their caves.

    The top left of the layout will always be 0x, 0y. X counts upward toward the right edge, and y counts upwards toward the bottom edge. In a screen resolution of 640x480, you get this:

    0,0---------------- Y = 0 --------------640,0
    |                                           |
    |                                           |
    |                                           |
    |                                           |
    |                                           |
                                                 
    X = 0                                 X = 640
                                                 
    |                                           |
    |                                           |
    |                                           |
    |                                           |
    |                                           |
    0,480------------- Y = 480 -----------640,480
    [/code:qgo86m4s]
    
    So it stands to reason that if you want an object to move downward, you add to it's y coordinate, and if you want it to move upward, you subtract from it's y coordinate.
  • I would have thought that is how it worked anyone for some reason, got it in my head, just can't explain it kinda thing, thanks for the tips anyway guys

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)