• 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!

colision

  1. Z

    SOLVED Error Sound in a colision *not set before reading it.*

    ___________________________________________ ############################################################################################ ERROR in action number 1 of Step Eventobj_point for object obj_player: Variable obj_player.snd_comiendo(100026, -2147483648) not set before reading it. at...
  2. A

    GameMaker Double collision problem (sorry for the English)

    I have the following problem: In my game, I have two weapons, when the player is over one of the two and right clicks, he takes that weapon, but if he is over two weapons, he takes one, and the other disappears
  3. FoufaDjo

    SOLVED collision,friction and accel problems

    i followed a tuto on yt about movement and the dont use the speed var so i cant use the friction function can someone help me: hspd = (rkey-lkey); vspd = (dkey-ukey); if (hspd != 0 or vspd != 0){ dir = point_direction(0,0,hspd,vspd); hmove = lengthdir_x(spd,dir)...
  4. kureoni

    help with colision code?

    thats the basic movement code for the obj_enemies if(instance_exists(obj_player)){ mp_potential_step(obj_player.x, obj_player.y, spd, obj_colision) image_angle = point_direction(x, y, obj_player.x, obj_player.y); what i want to do is: when the obj_enemies touch a obj_colision (that...
  5. C

    Collision help with decimals

    Hello everyone. I'm having trouble to understand how collision detection works, I'm really beginner and not being the english my main leanguage, manuals doesn't help. Well, with that said, I'm trying to emulate Super Mario World physics, for now I only have the horizontal movement partially...
  6. G

    I need a simple, yet effective collision code

    i just simply dont know how to make collision. Please help. it does not have to be really simple i get code really well :) you can paste code down below or you can link a good forum post or something.
  7. F

    GameMaker Jumping mechanic issue

    Hello Guys, i'm actually trying to study GML/Programation Logic and in the same time developing a game. (On GMS 2) I'm studying with videos on YouTube. On the past 2 weeks i'm developing and studying the method to create a game using the HeartBeast video's, to be more precise, the "Hack'n'Slash...
  8. S

    Windows Hey Guys, my colision-system is completely broken!

    I tried everything I could but after 3 months I just gave up can you help me? For further information here's my reddit post about it! I didn#t want to program this whole thing from the beginning again, please help!
  9. William Garrison

    GML Unique Object Collision

    I have a Collide event with the character that swaps the sprite of a flower to an animated sprite. Problem is when the character triggers that one flower then ALL the instances of that flower object change sprites. Can you point me in the right direction to fix it so just the one flower reacts...
  10. A

    GameMaker [Solved]Need help. Collision with multiple objects in step event.

    Okay so I can't seem to find a solution that works so I might as well give it a shot here. Most of the code I used here is copied from some videos on youtube, and combined everything a bit to get the result I wanted. I wanted to make a game where you smoothly could move up and down slopes...
  11. Suzaku

    GameMaker Check colision between 2 specified objects

    I know that the place_meeting function only checks for colision between a specified object AND the object who called the function. I wonder if there is a function that does the same thing but using 2 specified objects in the parameters, this way I can check for colision from another object not...
  12. giraffeman210

    Question - GML Visual Game breaks when I change speed with collision

    I am making a shooter game where the enemies move down toward the player until hit or they go off screen. I have some slow enemies that take more hits and I want the normal fast enemies to slow down when they contact them so that they don't go past the slower enemies. No matter how I seem to do...
  13. Suzaku

    GameMaker Most common ways to use colision mask?

    I want to make a colision mask in Gamemaker Studio 2, to my moving character and I ve been looking the internet to find some ways to use colision mask properly, here is what I found so far: 1 way: Just using the automatic colision mask that gamemaker offers. This seems to be very limited and it...
  14. S

    i am confused on how to make walls

    i did tried watching a few videos but i got confused or they were not working properly so i am wondering how to add walls so all i have right now is movement here is my code so far OBJ_player Creat//: idle = 1; walking = 0; up = 3; right = 2; down = 1; left = 0; Action = idle; Direction =...
  15. B

    My phyisics are wonky, please help!

    So I'm creating some sort of puzzle game, and my physics should work properly. But somehow the characters can jump even tho it's no speicified in the code to do so, is the hitbox range some sort of a circle or how does it work? Take a closer look at the video clip i made. Anyways the colision is...
  16. J

    How to check inverted colitions?

    So, I don't need this: !place_free(x,y) Because all what it woould do is to return true once there were no pixels at all in contact with the mask. What I actually want is a way to know when one or more pixels of my sprite isn't touching the mask. I used to achieve that by runing: for(){...
  17. Y

    GML trying to make a (physics)-object stick to a rotating (physics)-object

    I can't seem wrap my head around it, just pointers would be a big help: here's the issue: [picture removed] -The game takes place in a physics world- The skeleton hand are able to grapple to the giant (spinning) sun wheel. (and all blue surfaces) The sun wheel is rotating and while I am able...
  18. E

    Tileset-Colision stop working after 17th tile...

    Hello there, hope you can help me.. I have a big problem I could not fix or find any solution. I made a costum tileset-sprite with 60 tiles in one row. but in the game the collision checking does not work further than the 17th tile. At the 18th tile onward there is no more collision checking...
  19. P

    IA colision & pathfinding

    Hello evrybody first i am sry for my bad anglish cause its not my first langage i have a problem, its 3 day i try to fix it but nothing work i am beginner on gms2 and i try to do a shooter 2d zombi and i just need to know how can i do a pathfinding for zombies i just want a simple rulle like...
  20. K

    GML Need Help With Object Collisions

    So I am trying to make a platformer game where the you can jump off the ground and do movement stuff, problem being that I cannot fix my code and when bug testing the character would not move unless he was off the object. This is my code so far, and I need help: ///actions //Get the player's...
Top