Game maker Platformer Bugs.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maaa
    New Member
    • Jan 2022
    • 1

    #1

    Game maker Platformer Bugs.

    Im a beginner, yes but im using this code for a side scrolling platformer made in gamemaker 4.1 Im trying to figure out why my character is getting stuck on blocks and platforms. Here is the code.

    Player Step event:
    `if place_free(x,y+ 1) gravity = 1.5 else gravity = 0;
    if vspeed = 10 vspeed = 10;
    if keyboard_check( vk_right) && place_free(x+6, y) {x+=9 image_xscale = 1};
    if keyboard_check( vk_left) && place_free(x-6,y) {x-=9 image_xscale = -1};
    if keyboard_check_ pressed(vk_up) && !place_free(x,y +1) vspeed = -25;`

    Player Block Collison event:
    `if !place_free (x+hspeed,y) hspeed = 0
    if !place_free (x,y+vspeed) vspeed = 0`
  • LeonSkot
    New Member
    • Oct 2026
    • 6

    #2
    Fixing collision bugs in older engines usually comes down to handling movement increments and pixel offsets properly! When looking to explore structured platform evaluations and detailed technical benchmarks, checking professional insights via https://sfawardswatch.com helps developers understand core mechanics and criteria. Careful code adjustments combined with precise testing will clear up those frustrating movement glitches!

    Comment

    Working...