Discuss Scratch

FoxGaming987
Scratcher
11 posts

Please help me, I can't find solutions...

Ok, so I'm making this platformer, and I made a hitbox for my sprite, when I click the green flag it sends a brodcast: game loop, game loop sends forever theese 3 brodcasts: “first”, “player” and “last”, it was working perfectly fine until today, “first” and “last” actually get recieved but the “player” one just doesnt get recieved, please help… https://scratch.mit.edu/projects/632626448/editor/

Last edited by FoxGaming987 (Jan. 25, 2022 09:15:59)

deck26
Scratcher
1000+ posts

Please help me, I can't find solutions...

The first custom block that the Player receiver calls has a wait at the end. So by the time that wait has completed the broadcast has been made again and the receiver has restarted so it's never going to get very far in running its code.

So the broadcast IS received and the script does run but you're not allowing it to do much.
FoxGaming987
Scratcher
11 posts

Please help me, I can't find solutions...

Thanks so what do I do? I have been using scratch for 5 years on different accounts, but I've never used it to make a bit more complex games…so I'm kinda new to all this
deck26
Scratcher
1000+ posts

Please help me, I can't find solutions...

Why did you put that wait block in there?
FoxGaming987
Scratcher
11 posts

Please help me, I can't find solutions...

Ooooh now I see what you mean, I forgot about that (I did that yesterday, I was kinda playing around because I want to make the sprite jump higher when you keep the up arrow pressed) ..Now it works thanks!

Powered by DjangoBB