2 years ago

Hey, so I need some help with some basic DnD coding for Gamemaker Studio 2 if anyone's willing to try and help out.


So, I've been making a basic joke game for my friends to troll them on my birthday.

The game is a pretty standard FNaF 2 clone with poorly drawn assets and all the works. I'm pretty used to working with GameMaker at this point and assumed that the basic camera's system wouldn't be a problem. So what I did was create a variable called _plocation (Player Relocation) and for now I had it set between 1-2 that's set to one at it's creation (I initially tried a boolean value but that went about as well as this new variation) and added a basic line that said whenever the player pressed Space they get a quick 15 frame animation of the cameras turning on and a timer is set to match the animation and when the timer ends, the player is moved to the exact coordinates of the placeholder camera and the value of the _plocation is set to 2. Then once the player pressed Space again, they move back to their original position after the same animation and timer. Then it sets the value of _plocation back to 1. However, whenever I press space again after the first time it doesn't send me back. I've tried rewriting the lines in different patterns multiple times at this point and will take any advice. I can handle a script or a couple lines of proper code if it's needed. I just want some help, thanks.

The images above are the actual lines I've created.



0 comments

Loading...

Next up

I don't have any words... Other than: Thank you, MatPat.

Let's go! Forever at Taco Bell has already surpassed the original's follower count... (Which wasn't much, mind you, but it's still an accomplishment to me.) Anyway here's a dev shot of Endless Hard for the game to celebrate.

Semi-Spoilers for Undertale Yellow

I got my happy ending, dammit! :)

Minigame preview as promised!

Since Hand-Unit said that the end of FNaF 6 is on Saturday... then that means...

Devlog 1 - Now we're really cooking!

The FNaF Movie was so sick. Especially the dance party ending which is where I got this screen grab.

The Demo for Forever at Taco Bell is available on my profile, go check it out! I'd love to see some criticism since the game's not gonna come out for some time.

Check out my new game Scary Pizzaria 3D! Releasing soon.

Surprise FNaF Fan-game Demo coming out tomorrow! Probably...