Discuss Scratch

Ray-Style
Scratcher
4 posts

Freeze and unfreeze

I am finding it hard to make a pause button in a game because there isn't a freeze button.I tried stop script however I could not resume because I have to start again. I think these two buttons will be useful
jts1559
Scratcher
36 posts

Freeze and unfreeze

sorta like in snap?

Yay! scratch! (and pi)
Made successful alternative to Cloud Data Strings.
if <(distance to [Computer v])>[5m]> then
go to [Computer v]
set [Task v] to [Scratch]
end
AonymousGuy
Scratcher
1000+ posts

Freeze and unfreeze

I think it shouldn't be too hard to add a pause button, though I never thought about it.

Couldn't you just add this:

if <(pause) = [1]> then
wait until <not <(pause) = [1]>>
end

to all of the scripts?
turkey3_test
Scratcher
1000+ posts

Freeze and unfreeze

AonymousGuy wrote:

I think it shouldn't be too hard to add a pause button, though I never thought about it.

Couldn't you just add this:

if <(pause) = [1]> then
wait until <not <(pause) = [1]>>
end

to all of the scripts?
It really depends upon the projects. When you get into very complex projects and RPG's, it's not always that easy. But I don't support, because it's a challenge and where's the fun without it?

AonymousGuy
Scratcher
1000+ posts

Freeze and unfreeze

turkey3_test wrote:

AonymousGuy wrote:

I think it shouldn't be too hard to add a pause button, though I never thought about it.

Couldn't you just add this:

if <(pause) = [1]> then
wait until <not <(pause) = [1]>>
end

to all of the scripts?
It really depends upon the projects. When you get into very complex projects and RPG's, it's not always that easy. But I don't support, because it's a challenge and where's the fun without it?

I agree. It is more fun to use scripts.

Also, I know that might not always work, but it is one solution for some types of games.

Powered by DjangoBB