Discuss Scratch

dhfbei8987
Scratcher
1000+ posts

The ability to put event blocks in define scripts

IDontNoWatIAm wrote:

iiHoopsL wrote:

I was looking through this thread because i need to find out if there is a way to do this for a project:
define Received NextRound
ask [this is supposed to be an event] and wait
ask [then i need to put a script here] and wait

and then make a seperate script looking like:
when I receive [NextRound v]
forever
if <Received NextRound> then
Stuffs
end
end
To the original poster (quoted the quoted since I’m in a rush), please use help with scripts or questions about scratch. Also, please try your best not to bump up year old topics.

Can anyone help me out?
Why not ask in Help With Scripts?
SpinningCube
Scratcher
100+ posts

The ability to put event blocks in define scripts

This suggestion seems redundant. It's counterintuitive, and doesn't appear to apply to actual coding.

You can just do this:

define foo
...

when green flag clicked
foo

Powered by DjangoBB