ScratchData LogoScratchData
Back to JAM58_Test's profile

Piranha Plant Tick Code

JAJAM58_Test•Created October 25, 2024
Piranha Plant Tick Code
10
6
69 views
View on Scratch

Description

Simple tick code example for piranha plants Press D or click to turn on debug mode Explanation of what tick code is for the people who don't know: ◦ A main sprite (usually the Player or Stage) contains the only main forever loop in the code ◦ This loop will send out a "Tick" message every frame to all the other sprites ◦ The other sprites, on receiving this message, will run their main code ◦ This code will all take place over a single frame The upside of tick code is that it helps your games run faster, because it uses less loops and waits. However, I'd wait until you're fairly experienced with Scratch before attempting tick code - it's a lot harder to work with, since you can't use wait blocks or repeat loops

Project Details

Project ID1087034454
CreatedOctober 25, 2024
Last ModifiedOctober 26, 2024
SharedOctober 25, 2024
Visibilityvisible
CommentsAllowed