1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

GMS 2 Character placement issue with "Set Gravity Force"

Discussion in 'Programming' started by 1R85, Jul 2, 2019.

  1. 1R85

    1R85 Member

    Joined:
    Jul 2, 2019
    Posts:
    7
    Hello everybody!

    I use: Drag and drop. (No coding.)
    IDE Version: 2.2.2.413 Current Runtime: 2.2.2.326

    Game info: Low resolution game.
    Room Settings / Camera Properties: Width 160x88px
    Sprite size: 8x8px
    Viewport Properties: 1600x880px

    I want my character to stand/walk/land pixel perfect on "the ground", but with "Set Gravity Force" above 0 he starts off a bit below the upper line of the ground. (Like the gravity pushed him down a bit..)

    I have the Force set to 0.2
    And every time he jumps/flies he lands a little below the line.

    I have also tried other values, like 1:
    If he jumps/flies he will land in any 3 ways:
    - a bit below the line (Boo!)
    - on the line (Hurray!)
    - a bit over the line (Boo!)
    (Well 1 would be to strong a force anyway - but the changing result is strange...)

    Is this a bug? Or did I mess something up?

    If I set Force to 0 its ok, but then he wont land again when jumping :)
     
    Last edited: Jul 2, 2019

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice