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