If you're making a long game, it can be tiring to start the game over. How do you create a pause, unpause, and save game mechanic?
Offline
Pausing/unpausing is something you have to build in to all/most of your scripts by yourself. That is, you change a variable that all of your scripts call upon each time they're run, and if the variable isn't a certain value, they "wait until" it is again. There isn't a "pause" block.
Saving is impossible if you mean that the user reloads the page and is back where they left off. This is because all of the script is restarted when the page is reloaded, and scratch can't access external data.
Offline
Really? do you know any link on scratch or anywhere for that matter that can help me save a game?
Offline
Midnight, remember that you can't upload Panther or any mod games to the Scratch website, so if you make the long game in Panther, let's say, you will only be able to upload it to sites that support Panther (2, 3, I don't know).
Offline
what you do, is one of two things.
1. make a test account. upload it there as "title name (unfinished)" or something like that.
2. do the same as step 1, but on your regular account
Offline
imnotbobguy101 wrote:
what you do, is one of two things.
1. make a test account. upload it there as "title name (unfinished)" or something like that.
2. do the same as step 1, but on your regular account
i forgot the "--imnotbob"
--imnotbob
Offline
well one thing you can do is have a "save" button that when clicked gives a code that can be written down. each letter/number relating to a certain variable.
though this means someone who knows what variable each letter/number represents could then pretty much put the game into any scenario, for example if you had a shooter where one variable was the level the player was on and another variable was the weapon they had then they could set the level to 1,2,3,ect and set their weapon to some super gun you don't get till the last level and be using it on the first level ect...
but i don't think this is something to be real worried about since they would most likely need to play the game many times to figure out how the password worked.
AND you could always put some kind of sensor that detects to make sure all other variables are something you could actually have depending on the level at that point in the game.
Offline
imnotbobguy101 wrote:
imnotbobguy101 wrote:
what you do, is one of two things.
1. make a test account. upload it there as "title name (unfinished)" or something like that.
2. do the same as step 1, but on your regular accounti forgot the "--imnotbob"
--imnotbob
That seriously wasn't necessary xD
But I think he meant he wanted the user to be able to save his game because it's long, and it'd be a hassle to need to do the story again if you refresh the browser.
Offline
I have seen games that just don't reset the variables when you reset.
Offline
veggieman001 wrote:
I have seen games that just don't reset the variables when you reset.
O_o That could be a rare glitch, that would save the project, but I don't know, I've never seen anything like that before... You're talking about a project on Scratch, not Mod Share or sites like that, right?
Offline
veggieman001 wrote:
I have seen games that just don't reset the variables when you reset.
Yeah, that works but when you refresh the page it won't save.
Offline
ImagineIt wrote:
veggieman001 wrote:
I have seen games that just don't reset the variables when you reset.
Yeah, that works but when you refresh the page it won't save.
Wait, by reset does he mean press green flag again or refresh page? O_o
Offline
Death_Wish wrote:
ImagineIt wrote:
veggieman001 wrote:
I have seen games that just don't reset the variables when you reset.
Yeah, that works but when you refresh the page it won't save.
Wait, by reset does he mean press green flag again or refresh page? O_o
Green flag
Offline
An alternative is to have your project generate a password. Of course, people would figure out the code, then hack the game...
Offline
Claw has a save block built in...
Just saying
Offline
If your talking about saving in-game, so when you die you dont start all over, then just have a variable for level, x position, health, etc. If your talking if you want to exit the game then comback later, then you will need to use a code people can write down, say a level code.
Offline
Look,saving ia possible,my game "A Ball's Adventure II" has a save script in it using one variable. Save only works when you download a game. A Ball's Adventure II link:http://scratch.mit.edu/projects/robocos987/1852534
Reply back if you think saving is impossible!
Robocos987
Offline
Yes, there are ways. Codes for instance. And downloaded projects can be saved, quit, and loaded. But what I was trying to say is that short of asking for user input, there is not way to save a project online, refresh the page, and load the game at the saved point.
Offline
There is a way to save the game you did online, then use the save on downloaded game without typing any word in.
http://scratch.mit.edu/projects/julepdashgabriel/2808841
This number saver turns numbers in to pictures so you can take screen shot of the picture and put it on downloaded project as a new sprite, then make the project read the picture.
Offline