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

#1 2012-01-13 11:17:02

matthrew
New Scratcher
Registered: 2012-01-10
Posts: 8

start script

if you stop a script can you start it again without resetting the game because if i reset the guy after death he stops shooting can i change that

Offline

 

#2 2012-01-13 11:19:35

plb36
Scratcher
Registered: 2011-10-16
Posts: 100+

Re: start script

Try this. The script that you want to restart, instead of "when green flag clicked" at the top, put "when I recieve 'start'". Then put a different script that says "when  green flag clicked> broadcast 'start'" Then, when you want to restart the script, just do "broadcast 'start'" Hope this helps!  big_smile  ~plb


http://i1094.photobucket.com/albums/i456/plb36/myforumssig.png

Offline

 

#3 2012-01-13 11:26:18

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: start script

plb36 wrote:

Try this. The script that you want to restart, instead of "when green flag clicked" at the top, put "when I recieve 'start'". Then put a different script that says "when  green flag clicked> broadcast 'start'" Then, when you want to restart the script, just do "broadcast 'start'" Hope this helps!  big_smile  ~plb

yeah this is a good way of doing things


http://i.imgur.com/1QqnHxQ.png

Offline

 

#4 2012-01-13 12:45:29

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: start script

TRocket wrote:

plb36 wrote:

Try this. The script that you want to restart, instead of "when green flag clicked" at the top, put "when I recieve 'start'". Then put a different script that says "when  green flag clicked> broadcast 'start'" Then, when you want to restart the script, just do "broadcast 'start'" Hope this helps!  big_smile  ~plb

yeah this is a good way of doing things

Yeah, this is probably the best way. Although it can be really annoying if you've already created loads of scripts! In my latest game, I spent about 10 minutes just changing the "When green flag clicked" blocks to "When I receive 'Start'" blocks  tongue


Why

Offline

 

#5 2012-01-13 12:46:43

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: start script

RedRocker227 wrote:

TRocket wrote:

plb36 wrote:

Try this. The script that you want to restart, instead of "when green flag clicked" at the top, put "when I recieve 'start'". Then put a different script that says "when  green flag clicked> broadcast 'start'" Then, when you want to restart the script, just do "broadcast 'start'" Hope this helps!  big_smile  ~plb

yeah this is a good way of doing things

Yeah, this is probably the best way. Although it can be really annoying if you've already created loads of scripts! In my latest game, I spent about 10 minutes just changing the "When green flag clicked" blocks to "When I receive 'Start'" blocks  tongue

yep when making a project plan ahead, should save you a lot of trouble later  big_smile


http://i.imgur.com/1QqnHxQ.png

Offline

 

#6 2012-01-14 05:47:38

matthrew
New Scratcher
Registered: 2012-01-10
Posts: 8

Re: start script

can you give a photo for it

Offline

 

Board footer