Discuss Scratch

Czarekcz
Scratcher
1 post

Flappy bird = Making the score work with the bird going through

Right so I was making my flappy bird clone and I found out an easy way to score points.


when green flag clicked
forever

wait until <(x position) = [ ([ x position] of [ the bird)]>
change [ score] by (1)
symo1312
Scratcher
55 posts

Flappy bird = Making the score work with the bird going through

Another way is by adding this code to the pipes! (as long as the bird x co-ord is 0)

go to x: (-256) y: (0)
glide (1) secs to x: (0) y: (0)
change [score] by (1)
glide (1) secs to x: (256) y: (0)

Im not sure whether -256 and 256 are them; but they need to be the far most left point and the far most right point

Last edited by symo1312 (Aug. 9, 2014 17:32:05)

toyota16
New to Scratch
0 posts

Flappy bird = Making the score work with the bird going through

reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
deck26
Scratcher
1000+ posts

Flappy bird = Making the score work with the bird going through

toyota16 wrote:

reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Please don't spam or necropost.

Powered by DjangoBB