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 a sequence and script for running the sequence. The sequence won't run when I try to call it in my game manager object. Through some debugging, it looks like it is creating a bunch of layers and sequences endlessly. Why wouldn't it run at least once then? Did I miss a step with calling...
I created a sequence that overlays the screen and plays an animation. I call the sequence with a script which is placed inside of a switch statement. After some trial and error, I think the issue is possibly due to event order. Perhaps my sequence isn't running because it is waiting for the rest...
i've seen a tutorial about creating gravity and i'm in doubt about the functioning of the jump code
vsp=0;
grv=0.3;
vsp=vsp+gvr;
if (place_meeting(x,y+1,oWALL)) && (key_jump)
{
vsp = -7;
}
y = y + vsp
my doubt is, why doesn't the player character just teleport up as if i change the code to...
I would like a command identical to the collision event in the step both place_meeting and instance_place by default generate different results than the collision event. I would need this code to optimize the game
Hi, good people.
Today, I faced a weird error, which is in the title.
Full error log:
___________________________________________
############################################################################################
ERROR in
action number 1
of Step Event0
for object obj_menu:
local...
So my character that im playing as is weird. When i first hit "d" (right) he teleports a meter away before starting to walk. Same as when i press "a" (left). It annoys me because it makes the game kind of 💩💩💩💩. How can i fix this?
Hey all,
I'm a decent programmer but new to game dev, so I was following the GM2 tutorial "My First Game - GML". I followed the instructions and when I went to test rotating my ship, instead of just rotating like the original asteroids or like the example I was following, it'd rotate, but fill...
Hi,
I am working on building an in-game textbox that requires the use of the string_width method. I ran into a problem:
Let's say I have a string called "text"
text = "This is my string";
When I do:
var size = string_width(text) in the Step Event, I got size = 400; (this is just a random...
I'm making an enemy object where the enemy will go on a specific path to patrol.Then he will stop at a certain point to look around for the player.
I planned to make him change his sprite direction every 2 seconds(Enemies vision's for another day)but i seems to stuck here.I want the alarm to...
Hey coders,
I want to draw a sprite on click and have it stay there until I click again.
This is what i have so far.
if mouse_check_button_released(mb_left) && position_meeting(mouse_x, mouse_y, oStats)
{
draw_sprite(sStatBG, 0, 400, 400);
}
I understand the draw function is usually in the...
Hi there folks! :) I am currently working on a game which is a breakout derivative in which the paddle is a ship and the ball is a ball of energy. I am using GMS1.4 and trying this code in the ball's Step event, yet the ball literally just zones through everything which does not have a separate...
I'm still pretty fresh to gamemaker and am currently trying to animate a player w/ attacks. I have a character as an object and a claw (the weapon) as a separate object so that attacks can still be done in the air. Here's part of my code for the claw. This is the only part of the code that...
Hi I am beginner in game maker, and I have a question, maybe someone know this?
I have code that look like this in the step event.
if (var_doNothing = true) {
sprite_index = spr_default;
}
My question is, will this then happen every frame? Will it keep on putting the sprite_index each and...
Hello,
New to GMS, first game and currently working on the movement for a platformer and I'm stuck on one particular movement.
When on the ground the player is in the "grounded" state, by tapping left or right on the analogue stick the player enters the "dash" state.
When in the "dash" state I...
So I put this in the step event of my character...
if keyboard_check(vk_space){
instance_change(obj_Character_ROLL,true);
}
But it wouldn't work. It works fine if I just put the middle bit of that code into the "spacebar" event, but why doesn't it do anything like this?
EDIT: Is it a...
Many times I have to change variables and sprites according to some other variable.
In example:
if clicked {
var1 = 1;
var2 = 2;
draw_sprite...
image_index...
image_speed..
}
Should I split this into step and draw event like below so check clicked both in step and draw event?
In step event:
if...
For something like checking when I press the move key or whatever, for example.
Also WHY is there no detailed information about Any Key in the Manuel? That's really annoying guys. (STEP has a document...)
This has been bugging me since I took up GML about a month ago, and looking for advice or suggestions on best practices.
I have a spaceship game, and so far all it does it break asteroids up. The ship shoots a missile that collides with the asteroid, reduces the asteroid's health, and triggers...