I think there should be a stop all until: example block. So if you did like "If Space Pressed, Stop all, broadcast: paused" and then "When I recieve: paused, stop all until <space key pressed>
Offline
I don't think this is nessary. Just use a variable.
//for example
var paused=0
forever if (paused==0){
//do stuff
}
If space pressed
if (pause==0)
set pause to 1
else
set pause to 0
Offline
archmage wrote:
I don't think this is nessary. Just use a variable.
//for example
var paused=0
forever if (paused==0){
//do stuff
}
If space pressed
if (pause==0)
set pause to 1
else
set pause to 0
but that will take <forever>
Offline
zawicki1fromyoutube wrote:
archmage wrote:
I don't think this is nessary. Just use a variable.
//for example
var paused=0
forever if (paused==0){
//do stuff
}
If space pressed
if (pause==0)
set pause to 1
else
set pause to 0but that will take <forever>
Scratch already does lots of stuff for you that saves you time. Sometimes coding does take a long time but putting forever if blocks into your code shouldn't take that long.
Don't be lazy
Offline
archmage wrote:
zawicki1fromyoutube wrote:
archmage wrote:
I don't think this is nessary. Just use a variable.
//for example
var paused=0
forever if (paused==0){
//do stuff
}
If space pressed
if (pause==0)
set pause to 1
else
set pause to 0but that will take <forever>
Scratch already does lots of stuff for you that saves you time. Sometimes coding does take a long time but putting forever if blocks into your code shouldn't take that long.
Don't be lazy
I will not be lazy
Offline
zawicki1fromyoutube wrote:
archmage wrote:
zawicki1fromyoutube wrote:
but that will take <forever>Scratch already does lots of stuff for you that saves you time. Sometimes coding does take a long time but putting forever if blocks into your code shouldn't take that long.
Don't be lazyI will not be lazy
Cheak out my jet dog, it has a working pause
Offline
yambanshee wrote:
zawicki1fromyoutube wrote:
archmage wrote:
Scratch already does lots of stuff for you that saves you time. Sometimes coding does take a long time but putting forever if blocks into your code shouldn't take that long.
Don't be lazyI will not be lazy
Cheak out my jet dog, it has a working pause
but it is super glitchy. like the fact I could only go up after i paused.
Offline
Honestly, making a pause isn't hard. All you need to do is forever if (pause==0)
This block is not necessary. There are many more block that would be way more important to include.
Offline
One of my games has a pause feature in it. For some reason it is not working to well online. You will need to download it to work. It used to work online. Here is the link to my Ping Pong game.
Offline
music_man wrote:
One of my games has a pause feature in it. For some reason it is not working to well online. You will need to download it to work. It used to work online. Here is the link to my Ping Pong game.
are you a christian? i just noticed you sig.
Offline
zawicki1fromyoutube wrote:
yambanshee wrote:
zawicki1fromyoutube wrote:
I will not be lazyCheak out my jet dog, it has a working pause
but it is super glitchy. like the fact I could only go up after i paused.
Jet dog is very glitchy online, id be suprised if you got past the menus, download it. But like arch mage said, all it is are forever if pause=0 blocks around the constant moving blocks
Offline
likegames wrote:
yambanshee wrote:
zawicki1fromyoutube wrote:
but it is super glitchy. like the fact I could only go up after i paused.Jet dog is very glitchy online, id be suprised if you got past the menus, download it. But like arch mage said, all it is are forever if pause=0 blocks around the constant moving blocks
no place for chatting., this is scratch..
technicly u broke the topic. anyways, zawicki, you got what you wanted? if you want i might be able to make it work for you?
Offline
yambanshee wrote:
likegames wrote:
yambanshee wrote:
Jet dog is very glitchy online, id be suprised if you got past the menus, download it. But like arch mage said, all it is are forever if pause=0 blocks around the constant moving blocksno place for chatting., this is scratch..
technicly u broke the topic. anyways, zawicki, you got what you wanted? if you want i might be able to make it work for you?
i will just do it later...but yeah. this question is not off-topic, because I want to link it, then delete the post, can you tell me how to make a link to a project, and then make it so if you click it, you download it? i don't want to release it on the scratch website, so i will let you make it, yambashee, you do the same, you make it pause, and post it again in a new topic, when i reply on it, delete the topic, please.
Offline
I guess i could. But first, what is the game about and about how many sprites does it have?
Offline
yambanshee wrote:
I guess i could. But first, what is the game about and about how many sprites does it have?
Well, for now i have notworked on the game. may i finish school work first? sorry for now just make a project, I will tell you when I downloaded it, and just make what you NEED in it. i will just export the stuff, and say that the pausing script is by you.
Offline
Ok, why do you need to have to have such a lengthy discussion for a pause script? I gave an explanation in the first post I made here.
I'll give you the script here with the block pictures. Maybe this will be easier to understand.
<when green flag clicked>
<forever if><( pause <=> 0 )>
//insert main codes
//Any script that you want to have paused MUST have the forever if pause= 0 code
<end>
<when[ space ]key pressed>
<if> pause=0
set pause to 1
<else>
set pause to 0
<end>
Last edited by archmage (2008-09-23 13:53:45)
Offline
archmage wrote:
Ok, why do you need to have to have such a lengthy discussion for a pause script? I gave an explanation in the first post I made here.
I'll give you the script here with the block pictures. Maybe this will be easier to understand.
<when green flag clicked>
<forever if><( pause <=> 0 )>
//insert main codes
//Any script that you want to have paused MUST have the forever if pause= 0 code
<end>
<when[ space ]key pressed>
<if> pause=0
set pause to 1
<else>
set pause to 0
<end>
I know... lol, but i got nothing better to do and im running out of ideas for good projects so y not help someone that helped me with amazing graphics
Offline
yambanshee wrote:
archmage wrote:
Ok, why do you need to have to have such a lengthy discussion for a pause script? I gave an explanation in the first post I made here.
I'll give you the script here with the block pictures. Maybe this will be easier to understand.
<when green flag clicked>
<forever if><( pause <=> 0 )>
//insert main codes
//Any script that you want to have paused MUST have the forever if pause= 0 code
<end>
<when[ space ]key pressed>
<if> pause=0
set pause to 1
<else>
set pause to 0
<end>I know... lol, but i got nothing better to do and im running out of ideas for good projects so y not help someone that helped me with amazing graphics
thank you!
Offline
zawicki1fromyoutube wrote:
yambanshee wrote:
archmage wrote:
Ok, why do you need to have to have such a lengthy discussion for a pause script? I gave an explanation in the first post I made here.
I'll give you the script here with the block pictures. Maybe this will be easier to understand.
<when green flag clicked>
<forever if><( pause <=> 0 )>
//insert main codes
//Any script that you want to have paused MUST have the forever if pause= 0 code
<end>
<when[ space ]key pressed>
<if> pause=0
set pause to 1
<else>
set pause to 0
<end>I know... lol, but i got nothing better to do and im running out of ideas for good projects so y not help someone that helped me with amazing graphics
thank you!
Lol, np but i cant do it now, its 9pm
Offline
Forever block does not work in some cases!
Write:
forever is (pause = 0){
move (10)
wait (1) sec.
turn (10) degrees
wait (1) sec.
}
If pause setted to 1 but script is not completed (it takes 2 seconds) the script will continue working!
Offline
Nikimax wrote:
Forever block does not work in some cases!
Write:
forever is (pause = 0){
move (10)
wait (1) sec.
turn (10) degrees
wait (1) sec.
}
If pause setted to 1 but script is not completed (it takes 2 seconds) the script will continue working!
You are right...
Just don't use waits
Offline