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

#1 2011-11-02 16:28:09

NopeDK
New Scratcher
Registered: 2011-11-02
Posts: 1

Multiple initiations of script stops it.

Hello.

For a school project I am trying to get Scratch (BYOB) to spawn sprites and launch them vertically downwards. I have completed this in Scratch annd I am now trying to simplify it in BYOB but have a technical issue. I initiate the launch script with an extremely fast timer as it must launch multiple sprites as fast as possible but since they all get the activation it bugs out. Whenever the script initiates the second time and the conditions has changed to false, it stops the movement of my "glide".

Script:
When "Start" is recieved:
If sprite is clone:
       Glide to X,Y
       Add 1 point
       delete myself

I can see that the script works, but if I broadcast "Start" faster than the glide time, it cancels the instance running (the glide) and starts over and fails at conditions. Result is multiple floating sprites which should have been gone.

Can anybody help with this?

Offline

 

#2 2011-11-02 20:53:29

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Multiple initiations of script stops it.

I think this is a limitation of BYOB/Scratch/Squeak. There isn't much to do about it other than work around it.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

Board footer