Sprite Game timer count
-
Hey guys,
I am making a sprite game where you have to dodge asteroids. My question is, how do you put in a score count in the game? I am a bit new to fuze. If anyone knows, please replay!Thanks!
-
@ahallett2002 Shouldn't be to difficult just keep a variable with the current score in it and show it on the screen somewhere (unless I am a misunderstanding the problem?)
-
Try this as a separate program and see if you can figure out what’s going on.
startingtime = int(time()) score = 0 loop clear() currenttime = int(time()) score = currenttime - startingtime print (”score = ”, score) update() repeat
-
I've edited it for you but when including code in your reply put three 'backticks' before and after the code chunk to get the proper code formatting.
Please see the FAQ here: https://fuzearena.com/forum/topic/226/faq-common-questions-and-answers/4
-
@Martin Thanks, will do in future.
testing
-
This post is deleted!