ScratchData LogoScratchData
Back to Nightlight_Prod's profile

New code and blocks to scratch

NINightlight_Prod•Created January 9, 2024
New code and blocks to scratch
0
0
2 views
View on Scratch

Instructions

about the new blocks, it's still not official, they did not put them yet, i hope they will... ~~~~~~~~~~ vvv Copy & Paste vvv ~~~~~~~~~~ when flag clicked set [TrackID v] to (1) set [Boss v] to (0) forever if <(Boss) = (1)> then set [TrackID v] to (6) else set [TrackID v] to (1) end play (TrackID) end when i receive [Boss Spawned! v] set [Boss v] to (1) Define play (#) after first tick - if <(#) = (sound (name v):: sound)> then { play sound (#) } else { repeat (10) change volume by (-10) end play sound (#) repeat (10) change volume by (10) end }:: control //sound name and number are new blocks i'm inventing, also the C after first tick if block. Can be copy pasted in this website, it should convert! " https://scratchblocks.github.io/#?style=scratch3&script=when%20flag%20clicked%0Aset%20%5BTrackID%20v%5D%20to%20(1)%0Aset%20%5BBoss%20v%5D%20to%20(0)%0Aforever%0Aif%20%3C(Boss)%20%3D%20(1)%3E%20then%0Aset%20%5BTrackID%20v%5D%20to%20(6)%0Aelse%0Aset%20%5BTrackID%20v%5D%20to%20(1)%0Aend%0Aplay%20(TrackID)%0Aend%0A%0Awhen%20i%20receive%20%5BBoss%20Spawned!%20v%5D%0Aset%20%5BBoss%20v%5D%20to%20(1)%0A%0ADefine%20play%20(%23)%0Aafter%20first%20tick%20-%20if%20%3C(%23)%20%3D%20(sound%20(name%20v)%3A%3A%20sound)%3E%20then%20%7B%0A%09play%20sound%20(%23)%0A%7D%20else%20%7B%0Arepeat%20(10)%0Achange%20volume%20by%20(-10)%0Aend%0Aplay%20sound%20(%23)%0Arepeat%20(10)%0Achange%20volume%20by%20(10)%0Aend%0A%7D%3A%3A%20control%0A%0A%2F%2Fsound%20name%20and%20number%20are%20new%20blocks%20i'm%20inventing%2C%20also%20the%20C%20after%20first%20tick%20if%20block. " or paste it on a clean web " https://scratchblocks.github.io/#?style=scratch3 "

Project Details

Project ID948126649
CreatedJanuary 9, 2024
Last ModifiedJanuary 9, 2024
SharedJanuary 9, 2024
Visibilityvisible
CommentsAllowed