Skip to content
Sign upLog in
Displaying scores
Profile icon
DEMONul1234

So I created that code here, but don't know how to make score appear on a turtle window

You are viewing a single comment. View All
Profile icon
[deleted]

I would use:

screen.title("Score: " + score)

If that doesn't work let me know, I don't really know much about python with turtle so I'm just making a guess on the fly.

Profile icon
DEMONul1234

@GoofyGus
It does not work. Well 'title' is not an attribute for pygame, so nope... also int cannot be added to 'set_caption' which actually defines title.

Profile icon
[deleted]

Yeah sorry, I don't know much about pygame and stuff, maybe you need something like this?
https://techwithtim.net/tutorials/game-development-with-python/side-scroller-pygame/scoring-end-screen/


@DEMONul1234

Profile icon
adl212

@DEMONul1234

also int cannot be added to 'set_caption' which actually defines title.

You should replace score with str(score)