• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

collison

  1. K

    Legacy GM please help with collision and changing variables

    Hello i am attempting to write some code in the collision event where it reduces the count by one when a window is broken. however when the window broken state is set to true it should not reduce the score but it still is doing so i have attached the code below. any help is appreciated thank you...
  2. R

    SOLVED New to gamemaker, how to make my character go underwater with head popping out?

    Hello! I'm very new to game maker and have been using the drag and drop system for most everything, so pardon me if the solution to this is obvious and I just can't see it, (I do not have a programmers brain) I was wondering how to make my character drop into the water with the head above the...
  3. Q

    GameMaker [SOLVED]Basic Horizontal Collision Issues

    My player character is having problems with approaching my "wall" objects. As he gets closer to them he starts to blink and spazz out and then gets stuck inside the box and disappears. Here is the code I am using for the collision if(place_meeting(x+hz_mv,y,oWall)){...
  4. N

    Problem with a code. Could you help me?

    Hello everyone, I'm starting GML and I have a problem with some code I just wrote while following a tutorial. Basically, it should make my obj_player stop when colliding with a specific tile. But when I lauch the game, the obj_player just moves out of screen. Could you help me? Here is my...
  5. sv3nxd

    Legacy GM [SOLVED] Collision Script only working with one object

    Hey, having a problem with collisions over here. I fiddeled around with 3D and wanted to make my own collision-script, not the place_meeting-one. (Knowing it's slower) But it failed in 3D. So I took the z-Axis out and tried it in 2D - And it still doesn't work ... ? It's based on Shaun...
  6. J

    Ramp Collision

    Hello everyone, my friend and I are trying to develop a simple game in which a square moves through a floor and jumps through ramps, just to begin to familiarize with the IDE and all. So, we're stuck to a problem with the ramp collision it kinda works but, when it starts to move on top of the...
  7. M

    Windows How do I make collision with ammo pickup destroy the ammo pickup

    Hello, I've only just recently been having a go with game maker and am having some difficulty getting the ammo pickup working. Everytime I collide with the ammo it will keep increasing the amount of ammo I have and won't stop until I move away. I want it so that after the player collides with it...
  8. T

    Collision between moving objects

    Hello, first of all I want to say I'm new to GameMaker. I've used Unity for the last 2-3 years, but since my main focus is making 2D pixel art games, I decided to give it a go and learn to use GameMaker. So far I'm really enjoying my ride. Right now I'm working on little topdown hack'n'slash...
  9. C

    Legacy GM Not detecting collision lines for children?

    I have an enemy that will attack if it detects the player through a collision line. If there is a wall in the way it can not detect the player. I would like to add a block that functions like the walls but the enemy can see through it. Is there a way to make this the child of the wall?
  10. 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...
  11. A

    Legacy GM Changing the order of code execution[SOLVED]

    So i have 2 objects, one is the hero and other is enemy so i already designed the hero's attacks and enemy's attacks, so now the problem i have is that say the user presses a button to start the attack then at that time candmg=1//a local variable in hero object then in that object collison is...
Top