collide

  1. LEFH

    SOLVED Problem with collision and jumps

    Hi! I'm learning how to code these days and find a bug in my game, basically if the player collides with a vertical block and holds jump he makes a teleport (video attached). This doesn't happen all the time but I would love to know what is wrong with it. Thanks! Jump: if (_ground) // só...
  2. S

     Help refining wall collision

    Hello, I've seen many people use multiple strategies to tackle the issue of wall collision. In my case, I've used this code: var _collision = false; // horizontal collision going right if (sign(hspd) == 1) { if (tilemap_get_at_pixel(collisionMap, x+hspd+(4*sign(hspd)), y)) { x -= x mod 4...
  3. T

    GameMaker Wierd stop before landing

    Hello, I have a strange problem, when my character jumps there are moments where it stops for a moment before colliding with the ground and then collides, I don't know why it is and I haven't found any way to fix it. This is the code for Colliding: vps = 0; if (place_meeting(x ,y+vsp, Object2))...
  4. B

    Basic Platformer player code with tiles instead of objects

    I need some code for basic player platformer movement, except instead of colliding with objects, he will collide with tiles. Please help. do i just replace (x, y, object) with x, y, "Tile layer")? I would really appreciate some help.
  5. G

    GML Problems with colissions (SOLVED)

    Hi, I have problem with colission. When the obj_player collides with the obj_limits this one (obj_player) it stays out of the screen and I can't move it. Can you help? This is the code I use: What would be the problem? Thanks for helping :)
  6. A

    A passive skill tree

    Hello guys, My top-down RPG is going pretty well, I want to make a passive tree similar to Path of Exile, - with levelup you gain passive points allowing you to spend in the tree (which is a room menu) - BUT you have to start from the center and choose points connected to each other ! ie. make...
  7. 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...
  8. Y

    Legacy GM Collision using virtual sticks

    So I'm currently using the standard speed function in gamemaker to make my player move towards a direction using this code: if(!place_meeting(x, y, Obj_Controller3)){ speed = global.spd } however this does nothing the code for the direction stick is this: if(!global.Pausing){...
  9. P

    efficient collisions...all on player or on each enemy?

    Hi all, For game efficiency, is it best practice to code all the 'kill player' collisions on the player for each enemy OR on each enemy for the player? *given there are more enemies on screen than players e.g: player > collision > enemy1 player > collision > enemy2 player > collision > enemy3...
  10. K

    NEED HELP WITH COLISION DETECTION

    Hello,I Am Using Gamemaker 1.4 And I Am Working On A Platformer,Now I Want To Detect When My Player First hits the ground.like the very second he hits the ground. I want Some Kinda "IF STATEMENT" That Detects For The Very Second The Player Collides With The Ground.not If He Is Colliding At...
  11. H

    How do i let Objects wont collide?

    Used an Object being followed by other Objects. At a certain time the follower objects getting to collide each other and i want them to have a little space to each other, so they never collide. :)
  12. phillipPbor

    Legacy GM to shaun spalding (if player hit by enemy)

    to @ShaunJS I just want to talk with you, I know you made enemys that collide with player but I just want the player to bounce back from colliding the enemy_par. how did you do that? I just copied your code actually. regardless.
  13. P

    GML Collision bug

    I made a GML collision system that works perfectly with 1 collision box ( the floor ), but if i create a new collision box and then collide with it on the left/right (not top) it bugs, and i don't know how to fix it. (i've been using GameMaker since last week so i'm sorry if this code is messy.)...
Top