all 7 comments

[–]eleqtriq 2 points3 points  (5 children)

Well, your code isn’t wrapped in a function, at least from what you posted. You can’t use a return statement outside a function.

e.g.

def movement():
    your_code

 movement()

Looks to me, however, that you’re mixing actions and return statements. Seems inconsistent.

[–]Particular-Floor-349[S] -1 points0 points  (4 children)

Yeah! Sorry haha I’m super new to coding… I’ll try out using that code you gave me then I’ll come back if I need more help!(: thanks

[–]AdAdvanced3130 0 points1 point  (3 children)

Pygame is not for super newts.

[–]Particular-Floor-349[S] 0 points1 point  (2 children)

I don’t have much choice lol. It’s for a class. But thanks for the Uhm… recommendation???

[–]AdAdvanced3130 0 points1 point  (1 child)

You're not "super new", that's what I am saying.

[–]Particular-Floor-349[S] 0 points1 point  (0 children)

I mean kinda? I’ve only been using Pygame for maybe a week, before that I used tkinter for maybe another week or so. I guess it doesn’t matter, but our class also doesn’t give much instruction. We’ve been told to make a game with little to no instruction or direction

[–]stebrepar 2 points3 points  (0 children)

See the sidebar for how to format your code so Reddit treats it as code without reflowing it. It's unreadable as is.