Discuss Scratch

CartoonsMoviesGAMES
Scratcher
10 posts

Fnf test

I need help with my fnf test, is basically where you use the arrow keys to go to a specific sprite then going back to the idle. I have left and up but everytime I do, I cant do it again anymore or other arrows: this is the scripts I have, I tried 3 times to fix it but it just wont work. (sorry if my explaining is bad, I hope the scripts help)

whenclickedforeverifkeyup arrow keypressed?thenbroadcastupwhenclickedbroadcastmessage 1whenclickedforeverifkeyleft arrowpressed?thenbroadcastleftwhenIreceivemessage 1switchcostumetocostume1foreverrepeat4nextcostumewait0.1secsswitchcostumetocostume1whenIreceiveleftstopother scripts in spriteswitchcostumetoleftrepeat1wait0.1secsswitchcostumetocostume7wait1secsbroadcastmessage 1whenIreceiveupstopother scripts in spriteswitchcostumetouprepeat1wait0.1secsswitchcostumetoup2wait1secsbroadcastmessage 1
cheekybubba5
Scratcher
100+ posts

Fnf test

I think I see your issue. When your sprite receives the broadcast “left” or “up”, you are using the “Stop (other scripts in sprite)” block, which then stops your others scripts. This means that your other arrow key scripts stop running and will stop detecting arrow keys. Is there a specific reason you included that block in your script?

GamingCat12345
Scratcher
100+ posts

Fnf test

With the way FNF plays, just use the when arrow key pressed blocks in events. There isn't a need for the forever loops.

Powered by DjangoBB