Chemistry, asked by yamunavision, 8 months ago

how can we create a custom block for spinning a sprite???
what is the use define block in the sprite?

Answers

Answered by SomShivam123
2

Custom blocks have a few uses:

•Use them to apply the DRY (Don't Repeat Yourself) principle to your projects, replacing blocks which you use more than once with a custom block. This way you can define a routine once and then use it whenever you need to by inserting your custom block into your project.

•If your scripts are getting large and unwieldy, use them to tidy things up and store long routines elsewhere.

•Creating recursive routines in which the routine is run again if a condition is or is not met.

•Creating routines in which values or strings can be altered each time you add the routine to a script.

------------------------------------------------------------------------

Define block in the sprite?

Sprites don't need to do this, and can instantly teleport to wherever they need to go. This is the main difference between the move block and the glide block: Most Motion blocks work instantly, but the glide block will move a sprite through in-between points.

Similar questions