collsion

  1. N

    help with collision with walls

    I wanted to make a game and needed collision for walls for a room with a hallway and most posts here for wall collision don't work, here is my player step script; x = x +0; if keyboard_check(vk_left) { x = x - 3 } else if keyboard_check(vk_right) { x = x + 3 } else if...
  2. L

    How do I collide objects from different collision groups?

    Hi! Im trying to make a physics object from collision group -1 collide with an object from collision group 1, but at the same time i want it to not collide with another object which is also at collision group -1. Does anyone know how should i do this?
  3. F

    When are the bbox values recalculated? Diagonal sprite detection

    Hi All, When are the bbox values recalculated? I've got a diagonal sprite detection issues and it feels like the bbox values aren't being updated when I change the "y" variable. Is this true? I've followed a number of tutorials about platform games. I'm an experience programmer in Java etc...
  4. S

    Collision in parent object

    hi, I'm trying to make a global collision in a parent object for all his children but the collision event or place_meeting function don't work ... Any Idee?
  5. L

    I need help.

    My character can only collide with "oWall" I need to make it to where it can also collide to "MovingPlatform" Heres The Code: //get player input key_left = keyboard_check(vk_left) || keyboard_check(ord("A")); key_right = keyboard_check(vk_right) || keyboard_check(ord("D")); key_jump =...
  6. N

    Legacy GM Collision problem?

    If I time my jump right, I get stuck in the block. My code: /// Brick block :: Create Event image_speed=0; image_index=0; jumped=-1; spinSpeed=0.2 bounceState=0; reset=-1; /// Brick block :: Step Event if (jumped==-1) { if ((place_meeting(x,y+1,obj_red) && obj_red.bbox_top > bbox_bottom))...
  7. J

    GameMaker Collision Issue

    I need some help figuring out my codes. On dropping an item, it will sort of fall out of the inventory. Code of the item: Create Event // Animation is off. If "true", run animation from the Step Event. loot_drop = false; z = 30; // Height. zspeed = -8; zgravity = -0.5; depth = -y...
  8. D

    GML Platformer collision off a few pixels

    I used matharoo's basic platformer tutorial on The GameDev Palace. The tutorial used GameMaker: Studio and I used Studio 2, I don't know if this matters or not, but when you jump and hit the ceiling or walk to a wall it is off a few pixels in certain places but not in others. The code: //Create...
  9. W

    Character not landing right somehow

    I had my collisions with walls all working just fine, but I changed some code around that dealt with the player's death, and saving and loading, and somewhere along the way something seems to have gone awry because now my player keeps stopping just short of landing on the ground and I have to...
  10. H

    small problem, big disperation

    hey people, so i want an enemy to move, and if it reaches a certain (collision) point it will create another enemy. The problem i have is, that i check the collision in the step event, so while the enemy is colliding its permanently spawing enemys, but i want only one enemy to spawn if it...
  11. H

    Collision Checking.

    Do i have so check for collision only in the step event? Because i want to check for a collision if an enemy is at an certain point, the next enemy will be spawn. But if the collision is true, its spawning an enemy every game frame because of step. Pls help me thank you :ß
  12. F

    Bounce Collision Problems

    I'm having a lot of trouble with a project I'm making. It's a top-down view racing game where crashing other cars is encouraged. The thing is, gamemaker's default bounce code isn't cutting it.Only one of the cars will actually bounce while the other car will keep moving on. I tried a few scripts...
  13. M

    Weird Collision Issue, Please Help

    So I've been working on a simple 2-player fighting game and I ran into an interesting bug when trying to detect the players hitting each other. Currently I have each player create a hitbox object when they press the attack button and then I have each player object check to see if they collide...
Top