This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-26 11:28:25

koled
New Scratcher
Registered: 2011-04-26
Posts: 1

Continuing the game

How do you continue the game without restarting the game after you paused it?

Offline

 

#2 2011-04-26 11:30:23

gettysburg11
Scratcher
Registered: 2008-06-14
Posts: 1000+

Re: Continuing the game

You mean if you pressed the stop button? Unless the person who made the game programmed a way to continue, I think you'd have to restart.


http://i256.photobucket.com/albums/hh184/mnacmilan/LOGO_ACMILAN-Splash.gif

Offline

 

#3 2011-04-26 18:51:02

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Continuing the game

Yep. Unfortunately, the only way to continue a Scratch project after you press the stop button is to click the green flag again.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-04-27 00:16:20

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Continuing the game

If you want, you can hard code functions in.
It would sort of rely on repeating loops and finding if its paused.
Or, like a movement games, if you want it to pause, set all movement variables into zero.

But, for games with pause, you don't want to use the stop as a pause, as it cuts all threads (or scripts) and is impossible to stop.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#5 2011-04-27 16:28:56

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Continuing the game

I'm not an expert myself, but here's my advice:

I would suggest you used a script like this. Pretty self-explanatory, so no need to comment further.  smile
http://dl.dropbox.com/u/11532575/forums/pausedExample.gif

Hope I helped!


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#6 2011-04-27 22:20:26

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Continuing the game

Well, I suppose you could make the entire game based off of the "When Green Flag Clicked" and duplicate all the scripts when "SpriteContinued is clicked" or "Key r Pressed".  Be difficult to make though.  For example, how do you make sure that both scripts are activated at once, doubling scripts?  Because of this, building in your own "Pause" function is easier than using the Stop Sign.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#7 2011-04-27 23:42:44

Agentpieface
Scratcher
Registered: 2009-10-10
Posts: 1000+

Re: Continuing the game

The only way is to be a nerd and hack scratch and make it possible xD It's impossible, maybe even for a nerd! But maybe you should put this in the suggestions page for 2.0?


http://media.tumblr.com/tumblr_lr7fywSZAG1qfj8fq.gif

Offline

 

#8 2011-04-28 01:12:03

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Continuing the game

Agentpieface wrote:

The only way is to be a nerd and hack scratch and make it possible xD It's impossible, maybe even for a nerd! But maybe you should put this in the suggestions page for 2.0?

It's possible, but difficult.

Offline

 

#9 2011-04-28 03:35:07

Agentpieface
Scratcher
Registered: 2009-10-10
Posts: 1000+

Re: Continuing the game

scimonster wrote:

Agentpieface wrote:

The only way is to be a nerd and hack scratch and make it possible xD It's impossible, maybe even for a nerd! But maybe you should put this in the suggestions page for 2.0?

It's possible, but difficult.

Impossible without programming.


http://media.tumblr.com/tumblr_lr7fywSZAG1qfj8fq.gif

Offline

 

#10 2011-04-28 05:53:36

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Continuing the game

Agentpieface wrote:

The only way is to be a nerd and hack scratch and make it possible xD It's impossible, maybe even for a nerd! But maybe you should put this in the suggestions page for 2.0?

It's actually easy to make a pausing system by hacking scratch. Scratch updates the program periodically through 'steps'. Decreasing the interval between each step makes it run faster (that's how turbo speed works), and making it stop stepping pauses the game.

BYOB has a pausing feature in it.

Last edited by floppy_gunk (2011-04-28 05:54:04)


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#11 2011-04-28 05:59:24

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Continuing the game

floppy_gunk wrote:

Agentpieface wrote:

The only way is to be a nerd and hack scratch and make it possible xD It's impossible, maybe even for a nerd! But maybe you should put this in the suggestions page for 2.0?

It's actually easy to make a pausing system by hacking scratch. Scratch updates the program periodically through 'steps'. Decreasing the interval between each step makes it run faster (that's how turbo speed works), and making it stop stepping pauses the game.

BYOB has a pausing feature in it.

Yeah, i just had a thought.
You could make it work by variables & blah blah blah - or when you mouse over the 'stop'
It show's a warning!  tongue


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#12 2011-04-28 07:06:12

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Continuing the game

Agentpieface wrote:

scimonster wrote:

Agentpieface wrote:

The only way is to be a nerd and hack scratch and make it possible xD It's impossible, maybe even for a nerd! But maybe you should put this in the suggestions page for 2.0?

It's possible, but difficult.

Impossible without programming.

Yes. But possible with.

Offline

 

Board footer