Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

gravaty movement (GM)


Recommended Posts

I hade this ideal to move an pbject using gravaty once, never hade the time to finish it till now, and another suprise with my gravaty movement was who it also makes exelaration, its extreamly easy to make and suporrts all movement angles, click here for a link to a post with the source code I made.

Link to comment
Share on other sites

Though it's the only real force/acceleration of the built-in variables, gravity isn't the best acceleration technique. Mostly because it only goes in one direction and calculating it as if there were two seperate forces acting on it (normal gravity and key-press movement, for example) is a pain. I supose it works for a top-down game with no actual gravity, but you'd have to limit the speed and create friction for slow-down.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...