1 year 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

Semi-Spoilers for Undertale Yellow

I got my happy ending, dammit! :)

I need my happy ending, dammit!

#Undertale #UndertaleYellow

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.

FredTime+ Christmas Teaser!

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.

Our 2024 Advent Calendar has opened! Day 24: @NickPerson is a great Creator who makes Five Nights at Freddy's fan games! Accept the quest and give them a follow to get Coins and a seasonal sticker!

Updated art of the objectively best character from #UndertaleYellow

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

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

you'll let the cold in

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

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