Im creating a game im new to this, is this coding right? as im getting some errors in vision studio code

Hi @object6725828227 may I know exactly what are the errors you are facing? You can choose to screenshot the output window of your code.

This is the error code im getting.

Hi @object6725828227: could you try removing the break; line in each case condition? Hope his helps!

Hi, perfect thankyou for your help :grinning:

return means handing back data to the caller, signaling the function is done executing.

There is no way those break keywords can be reached.

1 Like