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

collisions

  1. R

    Player Knockback vs. Enemies

    I'm working on a platformer game where I'm trying to achieve a collision between the enemy and the player where the player takes damage and then is knocked backwards (in the opposite direction of his/her approach). This is my movement code; http://pastebin.com/2Eyp07XN Here is my collision...
  2. R

    Legacy GM [Solved!] Collisions: How to make collisions effect both objects involved?

    Hi Everyone, I'm sorry if this is a REALLY obvious question, but for the life of me I can't seem to get my collision working correctly! Basically, what I'm trying to achieve is to have two objects collide, causing BOTH of them to bounce away from the point of impact. At the moment, however...
  3. M

    Windows [SOLVED] Gap under character error (need collision help and advice)

    Hey! I'm new here, so bare with me :) - I have recently started working in GM, and I've enjoyed it immensely so far. Here's my question. I see to be having some collision(?) problems with my character. Sometimes when I jump and land on a surface there's a small pixel gap (1-3 usually) between...
  4. E

    Legacy GM Problem with collisions

    There is the enemy alert state and the script GridPath() that launches when enemy sees the player. The problem is enemy collisions with the solids (wall). I tried to fix it with the sprite dimensions, changed grid values, but nothing seems to fix the problem. Maybe is something with...
  5. E

    Help with enemy collisions with solids

    I've been stuck with this collision for enemy3 for 3 days almost. When i copy player collision code which is perfect by the way to enemy, it's not working at all. I tried almost few tutorial codes for collision, but always the same. It's stucked into wall or not it the same line with the wall. I...
  6. D

    Sprite gets stuck when changing collision mask

    Hi, i'm working on a simple platform gaming but i'm having some problems handling collisions when i need to change collision masks. Actually the code to handle collisions looks like this: ----------------------------------------------------------------------------- //Horizontal collisions i = 1...
  7. Niels

    Legacy GM collisions on fast projectiles... about to give up

    Hi everyone, I have a questions about how to implent a (easy enough for me to understand) code for for shooting enemies. my game is in a 2d platform perspective and my player character has a machine gun that fires bullets (obviously ;) ). problem is that fast flying objects actually...
  8. V

    Top Down Shooter Project Video Series

    GM Version: GM Studio Target Platform: Computer (Non-mobile device) Download: https://drive.google.com/open?id=0B7FHueVA3nIGZ2ZmaUw4cjlWY0E (This is source code) Links: https://www.youtube.com/playlist?list=PLqyLkr5WwLN_jvBtZ775Hxcd6vELwlvJb (This is the playlist) Summary: In this YouTube video...
  9. A

    Legacy GM Help Simplifying my 8-directional grid based movement code

    So, I have 8 directional movement on a grid. Here's what I have that governs the actual movement; //Setting up animation frames facing = image_index; //Code for turning on the spot if (ismoving == false){ if (keyboard_check_pressed(vk_right)) { image_index += 1...
  10. A

    Legacy GM Help with collisions and getting stuck

    I came back to a project I was working on a while ago and realised I hadn't fixed two big problems with the game. My first problem is a bug I found which happens when my player object is being lifted by a platform and tries to move into an adjacent wall. The player object's upward movement...
  11. W

    Legacy GM Need help with collision Scaling in arcade style game

    I have an enemy_object with an enemy_sprite. I'm trying to get the collision boxes of the randomly spawned images to match their sprites. I'm not sure how to do this... I've been trying different things for about 2 weeks. Different answers have made sense but the implementation of them has...
  12. N

    Legacy GM Wall Collisions with Depth

    Hi! I'm making a bullet hell game as my first GameMaker project. I have most of the basics like moving, shooting etc. but I need a good way to make collisions where the top half of my character goes over the wall, while maintaining the hitbox size for incoming bullets. Since this is a bullet...
  13. N

    Legacy GM Bullet Collisions

    Hello! I'm basically having trouble figuring out an efficient system for bullet collisions, which is a big deal in a bullet hell. The problem is that with so many bullet types that all have to collide with every surface and every one of hundreds of types of monsters, how do I avoid as many "Add...
  14. J

    Legacy GM Can you check my basic platform movement and collisions system?

    y-=vsp vsp=0 if keyboard_check(vk_left) { if !place_meeting(x - 5, y, obj_wall) x -=5; else x-=distance_to_object(obj_wall) } if keyboard_check(vk_right) { if !place_meeting(x + 5, y, obj_wall) x +=5; else x+=distance_to_object(obj_wall) } if keyboard_check(vk_up) {...
  15. W

    Legacy GM Challenge with creating multiple objects with different sizes.

    Need to accomplish: 'Spawning' the same object many times, each with a different sprite size/collsion size. (an enemy with the same sprite but randomly smaller or bigger than the last) I have an object_spawner that, when the conditions are met, spawns an object_enemy. This object_enemy has...
  16. M

    Physics Collision Shape to Each Sprite

    I have an object that uses physics, and change it's sprite. The sprites has diffrent sizes, how do I modify the collision shape for each sprite?
  17. M

    Changing Collision Shape

    I'm creating a game that uses physics, and I wanted to know if it's possible to modify the collision shape for each sprite (the player will have sprites that change according to what he does).
  18. A

    collision_line's collision coordinates

    Hello, I'm making a top down shooter and I need to know how to find the coordinates of collision line where it's hitting an enemy or a wall for example. Also I want to make room sides as a collision check end coordinates. Any example of the code would be great, thanks.
  19. D

    Legacy GM GML: Bouncing off Ends of Rectangular Walls

    Hello there! I'm looking for some help with an algorithm that allows the player object to bounce off of a rectangular wall. Some Context: in the game your player object is rotating around a circular "platform". You can tap the screen (or left click) to launch the player at any given time and...
  20. W

    2 Collision checks?

    Bit of a confusing issue. I have plans for water areas to be part of my game ( platformer style ) and the in water movement is fine, but I also have some solids around the sides and above the water object, and the player can't collide with solids the way he should while he's in or colliding...
Top