Discuss Scratch

two195
Scratcher
13 posts

How do I make a score variable in my flappy bird game?

Please tell me.
Here the link: https://scratch.mit.edu/projects/1018430769
account_name_empty
Scratcher
10 posts

How do I make a score variable in my flappy bird game?

two195 wrote:

Please tell me.
Here the link: https://scratch.mit.edu/projects/1018430769
when green flag clicked
forever
if <touching [ coin]> then
change [ score] by (1)

end
if <touching [ pipe]> then
set [ score] to (0)
end
end
coin is the way to detect if the player is past the pipe

Powered by DjangoBB