Pages: 1
Topic closed
i am working on a game
and in some parts of the game i programmed my characters to hide.
i didn't realize when i hid them they still go. But i still have some characters that need to work so i cant use the stop all button.
WHAT DO I DO?
:)PLEASE POST IF YOU KNOW:)
Offline
you can use a local variable such as "visible?"
when you need them to hide say:
(hide)
(set "visible?" to 0)
when you need them to show up:
(show)
(set visible to 1)
and in the rest of the scripts:
forever if(visible==1)
{
do whatever
}
At the moment, sadly there is no "stop sprite" button.
Another workaround:
use the same visible hide/show scripts as above.
This would be used if you don't want the sprite to show up again.
repeat until(visible==0)
{
do whatever
}
stop script
Last edited by toontownmiser (2007-08-04 00:14:39)
Offline
put this at the end of script.......[blocks]<stop script>[/blocks]
hope that helps
Offline
Marine43753 wrote:
put this at the end of script.......[blocks]<stop script>[/blocks]
hope that helps
But that only stops one particular script.
No, there is no way to stop all scripts from one sprite. You can stop ONE script, or ALL scripts, but not FIVE scripts, SEVEN, scripts, THREE-HUNDRED FIFTY FOUR scripts, etc.
Offline
Maybe in the near future (I'm talkin' 'bout version 1.4) They will add a stop sprite to the commands. Until then, though, we have to make do with what we have. In fact, I think I will post a forum to the one for suggestions, and see if they can do it.
Good luck
Offline
<when green flag clicked>
<forever if><( <{ visible }> <=> 0 )>
<hide>
<else>
<show>
<end>
this might help
Last edited by Goldfish01 (2008-10-18 05:42:08)
Offline
they should add a "stop script until" block in 1.4
Offline
coolstuff wrote:
terminator355 wrote:
they should add a "stop script until" block in 1.4
You can do that already by using [wait until].
No you cant,not with that.
You can use broadcasting.
Offline
keroro645 wrote:
coolstuff wrote:
terminator355 wrote:
they should add a "stop script until" block in 1.4
You can do that already by using [wait until].
No you cant,not with that.
You can use broadcasting.
Yes, you can. [wait until] will stop the script until the condition is true.
Offline
coolstuff wrote:
keroro645 wrote:
coolstuff wrote:
You can do that already by using [wait until].No you cant,not with that.
You can use broadcasting.Yes, you can. [wait until] will stop the script until the condition is true.
Stop script until not wait until.Stop script until will stop the script until somthing happens.
You're not understanding right.
Offline
keroro645 wrote:
coolstuff wrote:
keroro645 wrote:
No you cant,not with that.
You can use broadcasting.Yes, you can. [wait until] will stop the script until the condition is true.
Stop script until not wait until.Stop script until will stop the script until somthing happens.
You're not understanding right.
wait until will stop the script! Nothing can happen in the one script until that condition is true.
Offline
keroro645 wrote:
coolstuff wrote:
keroro645 wrote:
Scripts dont work when they're stopped!
It won't work when it's being wait until'd!
Yes I Know!
THEN WHAT r YOU ARGUING ABOUT!?
Offline
coolstuff wrote:
keroro645 wrote:
coolstuff wrote:
It won't work when it's being wait until'd!Yes I Know!
THEN WHAT r YOU ARGUING ABOUT!?
You want to take this outside?!?!
Stop script until is where you stop the script until something happens.
Offline
keroro645 wrote:
coolstuff wrote:
keroro645 wrote:
Yes I Know!THEN WHAT r YOU ARGUING ABOUT!?
You want to take this outside?!?!
Stop script until is where you stop the script until something happens.
and wait until is where you stop the script until something happens. Believe me! Even try it!
Offline
Why are you arguing? coolstuff is clearly right.
http://scratch.mit.edu/projects/bhz/279336
Offline
I agree we do need something like that...
Offline
Topic closed
Pages: 1