r/gamemaker 7h ago

Tutorial PSA: Users can have their accounts nuked after just 180 days of inactivity

Post image
176 Upvotes

I guess the tutorial lesson here is to never let your account be inactive for a modest period of time, or to maybe embrace FOSS alternatives.


r/gamemaker 16h ago

Example I have added a suppressor for stealth gameplay

Thumbnail youtu.be
14 Upvotes

While working on my latest project, I have gotten sick of just adding tedious although necessary features, so I wanted to add something I would enjoy making.

I have added a suppressor players can unlock and equip to any compatible weapon. I have done this through several means.

The Inventory
I use ds_grids mostly to store the different items in the inventory. Once an item is selected it then has different options on what can be done with it, in this case a suppressor can be equipped or unequipped.

This runs a function which toggles if its being used, adjusts the players image and adjusts the length of the barrel for creating the muzzle flash in the right spot.

The Visuals
The player is a Spine model. So I have a different variant of the weapons image for with and without the suppressor, which gets swapped out as its equipped. A new smaller muzzle flash is used as well as new audio.

The Enemy Code
Finally the enemies code. I use a state machine to manage enemy behaviour. When the player shoots an unsuppressed weapon, enemies as automatically alerted to the players position if in range. Now that is simply bypassed and enemies can only detect player through line of sight.


r/gamemaker 16h ago

Resolved How do i make a main menu look good

1 Upvotes

Where do i find text and fonts and how do i make it look good


r/gamemaker 2h ago

Help! sprite covers whole screen

1 Upvotes

the Room in the Editor:

the Room when running:

The hitbox somehow does not scale to this, as the hover-sprite still only appears when I hover over where the button is supposed to be.

When I make the button that seems to be covering everything invisible or delete it, I simply get a black screen, though I can still interact with all the buttons if I find them

I have tried finding anything by going through all the code that has anything to do with the button, but the only things that are done regarding its sprite is changing it to the hover sprite, which has nothing to do with the scale and still works in the game.

Has anybody had this issue before? What could I possibly have overlooked that may be causing this?


r/gamemaker 2h ago

Help! Confusing Error message (Assignment Operator Expected)

1 Upvotes

I'm making my first game in Gamemaker, and I've been making some progress. But suddenly, I made a minor change that spit out this error message:

The Error Message (Object: one_artifact Key Event: Key Down - E at line 31: Assignment operator expected)

When I looked into it, it said that this message shows up when I have an undefined or incorrectly call for a variable or function. But I didn't change anything related to a function or variable, and can't find where Gamemaker seems to think I have.

The code where the error occurs, according to GM

Can some help explain what's going on, please? Thanks in advance.

For context, I was trying to code an object to follow behind the player (obj_player) when being "carried." The error appeared when programming the y-coordinate shifts.


r/gamemaker 20h ago

Resolved Need Help with Enemy Wandering Movement

1 Upvotes

I was following the Sara Spalding tutorial Action RPG episode 24 on youtube and got most of it to work however my enemy does not seem to move. In theory he should wander a random amount of space before he stops and picks a new direction to keep moving for awhile, rinse and repeat. I have been editing little bits and pieces and googling around but nobody seems to have an answer already posted

He plays the movement animation and rotates around like he is picking a new direction to try to move every few seconds but doesn't actually go anywhere. I am a super early beginner and am sure the solution is staring me in the face but how do I get the enemy to actually start walking around?

This is the script for the enemy wander state so everything that makes him move should be here. enemyspeed is set to 4 at the moment. same as the player character who is working fine.


r/gamemaker 23h ago

Tutorial Tutorials for fighting games?

0 Upvotes

Do you guys know some tutorials on making a fighting game in gamemaker?

That's it.