Hi, I'm having problems with precise collision checking with a sprite generated from a surface. I created a circle for collision and an object to collide with. The collision only works as if it was a square, not a circle.
spr = 0
surfaces = noone...
Hello, I help you guys can help.
I am using the Gamemaker functions speed, physics and bounce to have my objects move through my room and bounce off eachother wen they collide with any other object. This is so far only done with the drag and drop commands.
The problem is that sometimes objects...
I'm trying to convert the collision detection that prevents the player from falling through the floor into code. Originally, I had it set as a collision event with the collision object that would set vspeed to 0, and move to contact with said object (to prevent this issue I got with the player...
Hello, I'm very new to GameMaker DnD and programming in general. I'm creating an object that spawns an instance of a different object above it, but I would like the instance it creates to destroy itself once the player walks away. How would I go about this? I can only get the instance to create...
So im making a door right now and everything is working perfectly(top down game btw), the only thing that im not happy about is the fact that when i open my door, i get stuck in it for like half a second because the collision box of the door "hits" me a second, resulting in me getting stuck for...
Hi everyone, I have a top-down game I'm starting to learn, and I've got the directional change etc down pat, and the collision with the walls works. However, when I collide with a wall I cant move along that wall while walking diagonally.
It seems to almost stick me to the wall and restrict my...
So I need help with Tile collision I'm using Shaun Spalding's Tile collision code (since I'm not good at coding) and I have physics on for jumping and falling but my character is falling through the floor PS horizontal collision is working and this is my code for step
I'm pretty new in GMS2, and I stuck to a probleme.
I try to make a spwaner who check if place_meeting before triggering a alert who make the object spawn.
For now I have this in the step event :
if (!place_meeting(x, y,obj1))
alarm = 1;
It work when the alerte is set...
I was originally going to use objects for collision and I had a safe assumption that I could do base building with that. However, I decided to go with tile collision and now i am concerned that using the tile and tile collisions won't do well with base building and destructible...
Hello, the checkbox "solid" is not implemented consistently enough for me. If I click on the box "solid", then it should also
be the case that I cannot go through fixed objects without explicitly querying this (with "place_meeting" and the "move_ ..."
commands). If you don't check the box, you...
I need some help. I want my player to collide with the tiles, but when i play it, it jitters against the tiles. How to fix? Thank you!
move_speed = 8;
jump_impulse = 21;
grav = 0.75;
v_speed = 0;
var l = layer_get_id("Collision");
tilemap = layer_tilemap_get_id(l)...
Hi guys, first post here, be gentle.
I'm making a platformer where the two main mechanics are jumping and kicking.
When you kick an enemy while it's in it's walk state, it goes flying away from you in an arc before colliding with the floor or a wall and destroying itself.
When you jump on an...
I've been making a Zelda-like top down game in GMS2, where the map is one big room with screen transitions, and I made off-screen objects deactivate themselves so enemies wouldn't move when you can't see them. Normally, when you bump into an enemy you will get hurt, but when I leave the starting...
My horizontal collision isn't working properly but my vertical is, could someone help please:p
my horizontal code:
x += sign(hspd);
hspd = 0;
my vertical code:
I need help with my collision, I'm a complete beginner when it comes to GML all my codes are just from youtube. However, I've been trying to fix a smooth collision with my objWall for several days now and I'm exhausted. I got help from many people who told me the problem but never...
I'm checking for collision tests I could use and I see collision_line_list has the option to have the list ordered, but the text reads "you have the option to order the list based on the distance from the center of the line to the origin of the instances found to be in collision".
Hello, people. How to find the angle of the nearest point where object will not collide other object like in Super Mario Maker, where if you put player inside the block, he will be pushed away from it. How to perform it?
For example, if the first object spawns in the same place as second object...
This is my first post since the last forum page went down. I haven't quite practiced GMS since then and I am looking for help with bullet collisions. I have looked for similar threads on here but with no luck in figuring out how to do it.
The trouble I am running into is either one...
I have a sprite with a collision box that is rectangular shaped but it seems to teleport or push itself downwards then snap to a grid and can sometimes go through walls. Please i need someone to help me
i am using the code in
Tilemap Collisions in GMS 2 - GMWolf
var dx = moveSpeed *...