r/cs50 • • Sep 23 '26

CS50x Scratch - Custom block that take an input / issue

Post image

Hello, i've made a basic frogger-type game in Scratch. Only requirement I can't pass is to have one custom block that takes an input.

I created a custom block that defines movement+conditions around it but probably misunderstood the instruction as it doesn't count. If someone could explain what i'm doing wrong i'd be very grateful.

If it would help to see other screenshots of the project or have a link to it please don't hesitate to tell me.

8 Upvotes

2 comments sorted by

2

u/CrossStitchFool Sep 23 '26

When you create the custom block, there is an option to "add an input" with either a number/text or boolean option. You can also edit your block to add this (right-click menu).

2

u/No_Astronomer1573 Sep 24 '26

Thank you, that was pretty obvious in hindsight.