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!
I have tried with this code:
x += speed * direction;
if (x > 1000 - sprite_width / 2) {
direction = -1;
x = 1000 - sprite_width / 2;
}
if (x < 70 + sprite_width / 2) {
direction = 1;
x = 70 + sprite_width / 2;
}
but, the move object did not change direction ( bouncing ). PLEASE...
Hi,
I have an issue with the slopes, I've recorded a video to demonstrate the problem.
Because tiles for slopes to work with move_and_collide require precise collision, with the low-resolution sprites, it is visible how the character kind of jumps from one pixel to another while going down...
Greetings! May someone please help/guide me? I want to make a movement like in a snake, when the character moves in the direction given by the key, but strictly along the grid
My idea, so far, was to make it continue to move to the middle of the next cell after calling a perpendicular direction...
GM Version: v2023.2.1.75
Target Platform: ALL
Download: No download
Links: N/A
Warning:
The audio is in Spanish but you can activate the captions with translation. It translates well.
Select closed captions (cc) tool, then select settings / auto-generate / language choice.
First lesson:
How...
I have a trap object in an auto scroller set to slow down the players movement speed variables once they touch it. Here's the code that plays when the player collides with the trap:
if(other.sprite_index = sGoop && other.activeGoop = true)
{
other.activeGoop = false;
playerGooped =...
I'm having a problem with background, the problem is that i need to my moon move,but always in camera vision and that not working,the moon stays in the same position,anyone know where's the problem? š
Here's my code,and sorry for bad english. (Lua is Moon)
Like i said above. i tried to look up solutions, or different tutorials on how to do movespeed. I've been scratching my skull all day, and thought i'd ask here, since i've gotten alot of help here before.
i apologize if I'm unclear of what's the issue.
here is the code:
#region //Get player...
Hello,
So I have sort of a special situation, since I can't find any existing solutions online. I am programming a Drag and Drop puzzle game and I need to drag an object around in a grid. Here's a snapshot so you can picture my goal:
So I need to drag the circle along this grid and get it to...
this is supposed to move the camera, but it doesnt move it for whatever reason.
var vm=matrix_build_lookat(x, y, -10, x, y, 0, 0, 1, 0);
camera_set_view_mat(global.camera, vm);
I'll try and keep this is as simple as possible.
I'm making a top-down box pushing/pulling game where once the player makes contact with the box, they are "magnetized" to it unless they scrape it off.
The movement in the game is tile-based, so one press of the movement key moves the player...
I'm having a strange thing going on with my code. This is the code I usually rely on to move my player object. However, it now moves to the right on it's own when no key is being input. If I press the key to go left, up, or down, the object stops moving to the right. You can test it to see the...
hi i'm new to game maker programming and sometimes i get stuck in trouble like this.
Well, I want to create two spawners to create 1 object in 2 directions for a platform game
I have 2 obj_spawn and 1 obj_char.
to obj_spawn_A I make an instance_create of obj_char as long as I press Q
to...
Hello.
I am now writing code to move the character with the keyboard. The code below I wrote is flawed. For example, if you press the left key while holding down the up key, and then release your finger from the up key, you will continue to move to the upper left even though you have only...
Good morning/afternoon/evening! I'm making a tile-matching game and need pieces to fall once a said line gets completed (removed).
Thus, I tried making a
if object.y < self.y
with(object) triggeringvariable = true;
once it turns true, the object gets their ".y += 30". The problem is, instead...
Hello everyone. First of all I have to say that my English is not very good and that I am a real code noob.
Well, I am using an 8 position motion setup based on this code:
//movement
hsp = (keyboard_check(ord("D")) || keyboard_check(vk_right)) - (keyboard_check(ord("A")) ||...
I have an target_object that is located in a room "room1". After interaction with a player_object it is supposed to move to another room - "room2". This object cannot be persistent as it is supposed to be in a specific room - not always in active room. So I used...
-I get no errors, it just simply refuses to move
-double checked if its the exact code i had for the previous project
-left out animations
-other inputs I made work such as using the arrows to launch projectiles
Please help me,
I have a trouble with the moves of the enemies in my game!!
They are facing right, but when they walk to left, they don't turn to the left and make a "moonwalk".
Also, I can't make they change to stopped sprite when they are stopped and they keep with the walking animation even...