Since the 18.104.22.1687 update whenever I pull over to the right and to the bottom of a collision block, depending on how stretched it is, I get trough it.
If the block isn't streched i don't get trough it.
In this image you can see the collision (red line) and see how streched the block.
To start this off, I'm using GameMaker Studio 2 and Runtime v22.214.171.124.
So I seem to be having a small collision issue. I'm using a tutorial by Lewis Clark
In part 2 it gets into the collision code. Now he seemed to fix his collision issue in the video, but for me there seems...
I saw that some people were having collision problems also with the latest runtime updates. Was that just with objects that use physics? My game doesn't and my collisions are broken too.
This is my player character jumping and colliding with the invisible wall objects in the older Runtime...
Hello! I've been working with a glitch in my game where the characters get stuck in each other, which looks like this:
After some testing, I found that it related to the clamp code I have:
x=clamp(x, 0, room_width);
y=clamp(y, 0, room_height);
So my question is: Is there an alternative to...
Hi, I'm quite new to the GameMaker. I've watched some tutorials about collisions with tiles. So far I got this in my player object:
if (hspd > 0) bbox_side = bbox_right; else bbox_side = bbox_left;
p1 = tilemap_get_at_pixel(tilemap,bbox_side+hspd,bbox_top);
I've been trying to make a pong style game for a while now but I can't seem to get any of the collisions right. Whenever I check for collisions, the ball either gets caught in the players or the wall, usually by one of the players pushing the ball into the wall (the players can move in 8...
I'm using collision_line to see whether or not a line-of-sight is obstructed in a turn-based strategy game.
When there's a character object and its id != the character that's looking, the obstructed variable is set to true, else set to false. So all of that works fine and dandy but the issue...
I'm creating a Platformer game and I've been having some collision issues when it comes to jumping. Whenever my character jumps and lands on a raised platform, they get stuck to it. The same happens if they start on a raised piece of ground and they jump or fall to the ground below. When they...
The player is controlled with the mouse, if it collides with a wall it stops like it should, but then I cant move it for some reason, it stays stuck.
x = mouse_x
y = mouse_y
if x < obj_mouse.x
x += 10
It's my first time posting so i hope that i'm doing it on the right forum.
I've ran across a crazy problem that I've never dealt with in Game Maker and I've found nothing close to a solution online, so I really need help.
- Here's some context:
I'm making a side-scroller.
Sorry if the answer has already been posted, i've looked around but haven't found any good solutions.
It's a classic case of a projectile traveling too fast to collide with the intended target. I do have a script in place to check for a line collision every step, and it works EXCEPT in the...
Does anyone have the actual code for move_contact_all because I want to make a move_contact_specified_object function.
I don't want to check solid on my floor objects and in the collision with floor event I have a move_contact_all but this is moving to enemies when colliding with the...
My sprite keeps with its way when it should stop because there are blocks with collision codes
Why I get this error? (CODE BELOW)
/// @description Desplazamiento
var keyLeft, keyRight;
keyLeft = keyboard_check(vk_left);
keyRight = keyboard_check(vk_right)...
I have an object that is set on a path either left or right, depending on which direction he is facing, by holding and releasing the "W" key. The object collides with obj_solid, but sticks inside the object instead of moiving right up to obj_solid. The code below the comment "Mid-SwingCollision"...
Ive made a small platformer game. The current collision code i have works very nicely, nothing gets stuck anywhere, unless the player gets teleported inside the solid object, in which case, the player can no longer move and is stuck there forever.
Lets just say i wanna make a failsafe where...
I created a custom mask for my ai punch animation. The mask is its own object and is instance_create'd when the punch animation/ frames are fully extended. Im not getting collision even though Ive tried all types of collision commands that make sense to me so that my player when "hit" gets...
hey, so im making a shmup and i want one of the shot types to be a thick laser that stops at an enemy. ive figured out i can do this by scaling its yscale, but im having a problem where it seems it doesnt scale the mask too? im not sure what the problem is, ive run countless tests to try and...
Is there a way to only check if the player is colliding with a certain side of an object? For instance if I want an if event to only happen when the player is on top of a block, but not if the player is hitting the side of the block.
Hello to all makers young and old! First of all let me introduce myself as this is my first post.
I thus got to my first design dilemma, that I spend maybe the last month on, and still cannot really figure out, being half brain dead in math and code.
Character: Player interacts with...
Hi there, I'm completely new to programming and making games, have wanted to make one for a while and after seeing the Humble Bundle deal for GM last Autumn I decided to take the plunge and have a go. I have been following Heartbeasts "Beginner's Guide to making an RPG" and am still in the early...