slope

  1. R

    Problem with Slopes

    I'm trying to make a slope system, but the character sometimes gets stuck on the slope, and he can't walk in the middle of it, can someone please help me fix this. //Input do player var _right,_left,_jump,_atk; _right = keyboard_check(vk_right); _left = keyboard_check(vk_left); _jump =...
  2. R

    Problem with Slopes

    I'm trying to make a slope system, but the character sometimes gets stuck on the slope, and he can't walk in the middle of it, can anyone help me fix this. //Input do player var _right,_left,_jump,_atk; _right = keyboard_check(vk_right); _left = keyboard_check(vk_left); _jump =...
  3. S

    Slope Collisions in GameMaker with push movement

    I've tried a lot of solutions to work with, but couldn't get it fully to work. If you don't get what I mean with, it's basically a slope collision, but it pushes you automatically when you collide with it. Example: If the X and Y scale of a slope is over 1 ( basically if the slope looks like a...
  4. A

    GML What is wrong with my collision code?

    I have an issue with my player's collision. Here's the code: var _platform = instance_place(x,y+max(1,vsp),obj_platform); var _platform2 = collision_line(xprevious,yprevious+sprite_height/2,x,bbox_bottom,obj_platform,0,true); if ((_platform) && bbox_bottom <= _platform.bbox_top) ||...
  5. The Major Squadron

    GML Rolling down a hill

    Hello, I'm working on a 2d platformer and have a boulder on top of a hill. I want this boulder to be able to roll down the hill on its own once it detects that the ground under it is at an angle. I think I need to do something with image_angle but I can't get it to work. Video of how it is...
  6. Z

    GML I need help with Slopes (diagonal walls) with a Zelda-like move code

    Hi, I'm creating a game with Zelda-like moves but I have problems with diagonal walls (like slopes), with this code: In the create event: xvel = 0; yvel = 0; In the step event: Left = keyboard_check(vk_left); Up = keyboard_check(vk_up); Down = keyboard_check(vk_down); Right =...
  7. TailBit

    SOLVED Tile collision rectangle

    I have seen the tile collision tutorial with slopes, pretty neat, but I've been trying to figure out how to detect where to end up when you will hit the ceiling, and I have more rectangular collision box.. For the first one, I did manage to figure out that I had to find the room between them on...
  8. FullCup

    Circle collision stuck in block.

    Could someone help me about the circle collision, I'm creating a game like 'Among Us' (movement), and I think a circle mask would be cool. However, it is hard to make the collision system so as not to get stuck in the block. How I'd like to do: You're just moving to the right, but the collision...
  9. VerdeBoss

    Slope inconsistency

    So I'm having a little problem about my slope inheritance code where players y position will follow through the assigned formula from each slope instances it collides on When the player follows through the terrain, player will get interrupted by issues such as "jumping five pixels up" upon...
  10. H

    [SOLVED] getting stuck while walking on slopes

    I'm using this part of code to walk up slopes: if(keyboard_check(vk_left)){ hsp = -4; }else if(keyboard_check(vk_right)){ hsp = 4; }else { hsp = 0; } // Slow down opposite x-movement when jumping if(sign(hsp) == 1 && moveL || sign(hsp) == -1 && moveR) hsp /= 2; if(sliding == true)...
  11. MaxLos

    Legacy GM Image Angle on Slopes [Solved]

    Hihi, I currently have my player object rotate whenever it's on a slope. Player rotates fine but I'm having trouble figuring out how to only rotate the player when their fully on the slope. Right now I have it set up to just draw the sprite at the right angle whenever it's colliding with a...
  12. E

    Help me figuring out how to place object relative to player position and its start position.

    Hello, people. I'm trying to make Castle Crashers like movement by creating a ground objects (slope, basic blocks, etc.) and moving them into player's vertical position every tick but they should move relative to their position too, not only the player position, otherwise they will aligh in the...
  13. E

    [Solved] Player get stuck when go up slopes straight to wall.

    Hey, it's me, Edwin again. yey So basically a weird problem that I have is when player goes up via slope, and then right after it player collide with the wall, player get stuck. It looks like this: This is my Step Event code: /// Step Event // Movement if (keyboard_check(vk_right) &&...
  14. E

    GML [SOLVED] Having some problems with slope movement and collision.

    Fixed by myself.
  15. D

    GameMaker Moving through jumpthrough slopes while on jumpthrough platform

    I've been working on jumpthrough slopes and I got it mostly working, the only issue I've now is that while I'm moving on a jumpthrough platform and the player moves through the jumpthrough slope the player gets stuck horizontally, the player will still be able to jump out of it though. Here is...
  16. N

    GML Grid collision system with slopes (keep ignoring)

    EDIT: Thanks for help!
  17. J

    3D collisions on a race track using pre-determined nodes

    Hello :) Thanks so much to anyone reading this post. I've actively been programming and designing in GameMaker for about 7 to 8 years but I cannot recover my other community account so I've made this one to post my issue here. I'm currently designing a 3D racing game with models imported into...
  18. E

    GML How to check the closer the object to the point, the great it's y-position and vice versa?

    For example, I have player object and any X position (or special object), and if player get near it, player goes upper, like for pseudo slopes, because my game has no collision objects like in platformers, but just "y-floor" variable that sets the y-position where player stop falling.
  19. E

    Tilebased slope collision

    Hey guys, I am curently programming a 2d platformer. For collision detection I am using tile based collision. The problem iam facing at the moment is slope collision with upsidedown slopes. i somtimes clip into them and i dont know why... :/ maybe someone could help me with that. Here is my...
  20. Z

    GML Slopes GML

    Hi there. Part from code is from some Tutorials of Shaun Spalding It does work in slopes, but only in the way up. And it doesn't works if the player collides with multiple platforms Please tell me if you know how to fix it. I will explain some variables and then the code: grav = Gravity Hsp =...
Top