Discuss Scratch
- Discussion Forums
- » Español
- » Como hacer Flappy Bird
- Dheu99
-
Scratcher
2 posts
Como hacer Flappy Bird
Lo primero que haremos es el movimiento del pajaro:
Luego haremos las pipas:
Ahora Haremos las colisiones del pajaro, y un ''Pequeño Retoque''
Y el pequeño retoque
when green flag clicked
set y to [0]
set [speed y v] to [0]
forever
change [speed y ] by (-1)
change y by (speed y)
if <mouse down> then
set [speed y v] to [14]
end
Luego haremos las pipas:
when green flag clicked
go to x: (280) y: (0)
hide
forever
wait (2) secs
create clone of (myself v)
end
when i start as a clone
show
set y to (pick random (-100) to (100)
forever
if < (x position) < [-270]> then
change [SCORE v] by (1)
delete this clone
else
change x by (-7)
end
end
Ahora Haremos las colisiones del pajaro, y un ''Pequeño Retoque''
when green flag clicked
forever
if <<touching [Pipas v] ?> or <touching [edge] ?>> then
stop [other scripts in sprite v]
point in direction (135)
repeat until <touching [edge] ?>
change [speed y v] by (-2)
change y by (speed y)
end
stop [all v]
end
end
Y el pequeño retoque

when green flag clicked
forever
point in direction ((90) + ((speed y) * (-1))
end
Last edited by Dheu99 (Oct. 19, 2025 22:18:28)
- Discussion Forums
- » Español
-
» Como hacer Flappy Bird
