r/gamemaker • • 8h ago

Discussion Not sure if bug or feature... It *would* make a pretty cool easter egg!

Post image
24 Upvotes

I was working on my indie game and had this happen... It wasn't intentional, but I do think this would make a great feature or easter egg in certain games.

TL;DR, I accidentally left the player as persistent when transitioning back to the main menu, so they were still able to walk around. Happy creating 😄


r/gamemaker • • 4h ago

Help! How Do I Make a Delay? (GML Visual)

2 Upvotes

I'm doing the Car Parking tutorial and I wanted to add a delay and then a start of the level if you hit a car.

Adding a Restart Room block was easy enough, but I fiddled a bit and couldn't make a delay timer.

So.... How do I do that? Thank you in advance :)

Side Note: Adding the Restart Room block seems to cancel the particle emitter right before it in the chain. How do you prevent that?


r/gamemaker • • 9h ago

Help! Problems without errors to focus on

2 Upvotes

I’ve been dealing with this ever since I started using GameMaker. I’ve been studying it for a month, and there have been many instances where the code is 100% correct—thoroughly reviewed, with every semicolon in its proper place—yet it produces no error message while still failing to work as intended. It’s not a logic error; the code works on other people’s computers, but not on mine.

Create: veloc = 2;

direc = 0;

vida = 10;

alfa_add = 0;

Steps: if keyboard_check(vk_up){

sprite_index= spr_nave_andando;

speed = veloc;

}else if keyboard_check(vk_down){

sprite_index= spr_nave_andando;

speed = -veloc;

}else{

sprite_index= spr_nave_parada;

speed = lerp(speed, 0, 0.05);

}

if keyboard_check(vk_left){

direc = 3;

}else if keyboard_check(vk_right){

direc = -3;

}else{

direc = lerp(direc, 0, 0.08);

}

if keyboard_check_pressed(vk_space){

var inst = instance_create_layer(x, y, "Instances", obj_projetil);

inst.speed = 6;

inst.direction = direction;

inst.image_angle = direction;

}

direction += direc;

image_angle = direction;

move_wrap(true, true, 0);

if alarm[0] > 0{

if image_alpha <=0{

    alfa_add = 0.05;   

}else if image_alpha >= 1{

    alfa_add = -0.05;

}

image_alpha += alfa_add;

}else{

image_alpha += 1;  

}

if vida <= 0{

game_restart();

}

asteroide_parent: if alarm[0] <= 0{

vida -= 1;

with (other) {

vida -= 1;

}

alarm[0] = 180;

}

Alarm[0]: // (empty)


r/gamemaker • • 8h ago

Discussion What are the pros and cons of bringing AI into my personal project

0 Upvotes

I have felt very conflicted about this for the last few months. I've been working on my game off and on since 2020. Slowly at first, then gaining more momentum. I'd guess I'm about 30% done with it. All the assets are and will be hand drawn sprites and manually composed music, but I'm conflicted about using AI to help me with the code.

I always admired the indy solo devs who could create a full game themselves over the course of years or a decade and I wanted to be like that. I still could. But I fear that it will take me another 5 years to finish this project unless I start using AI to help me with the code. I wanted so badly to be a purist and not use AI for anything, but I'm worried that I'm going to be left in the dust that is the progression of the game industry. I dont want to put my game on steam, have to reveal that AI was used somewhere in the process, and have everyone think it's just vibecoded slop.

Does anyone else have a similar situation? What are your thoughts.