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

Updated art of the objectively best character from #UndertaleYellow

Because there were design details I did not notice until just recently.

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

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.

@ryon is a Jolter to Watch, game dev, programmer, and artist who worked on Five Nights at Friedrich's! Follow @ryon before the quest ends on July 15 and you'll get Coins!

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

Finished up the ONWYN 1 cast!

I'm pretty happy with these models though I've noticed some inaccuracies I may go back and fix at some point.

Credit to thudner, the UFMP team, and the model porters for various model parts.

I need my happy ending, dammit!

#Undertale #UndertaleYellow

Art of the objectively best character in #UndertaleYellow...

I think I may be obsessed with this game a little...

2026.

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