Discuss Scratch

Craftastic
Scratcher
62 posts

How can you get the green pipes to move on flappy bird to the left?

I need help, willl someone help me please?
HarryPotterGeek500
Scratcher
100+ posts

How can you get the green pipes to move on flappy bird to the left?

Do you have the pipes as a background or as sprites? I think i can help you either way!
ELIAPPLE7
Scratcher
75 posts

How can you get the green pipes to move on flappy bird to the left?

Craftastic wrote:

I need help, willl someone help me please?
Try using this script.
when green flag clicked
forever
set x to (Start Position)
set y to (pick random (-10) to (10))
create clone of [myself v]
wait (5) secs
end
when I start as a clone
repeat until <touching [edge v]?>
change y by (-5)
wait (0.1) secs
end
delete this clone
And
(Start Position)
Is where the pipes start moving.
But remember!
These scripts belong in the sprite that the pipes are in.
Hope this helps!
Craftastic
Scratcher
62 posts

How can you get the green pipes to move on flappy bird to the left?

HarryPotterGeek500 :

The pipes to flappy bird is a sprite. i decided not to do it as part of the background because i thought making the pipe a sprite is easier, if you need to see what i did, i put it up on my profile so it might make it easier to see what i am doing wrong for another question i had.
Let me know if you know how to get the sprite to move to the left.
Craftastic
Scratcher
62 posts

How can you get the green pipes to move on flappy bird to the left?

ELIAPPLE7 :

I just tried that…

It duplicated flappybird and floated to the bottom. I grabbed flappybird and dragged him back where he started, and he repeated the process.

I am just so confused…

DaveTheGamer80
Scratcher
91 posts

How can you get the green pipes to move on flappy bird to the left?

Add your project to this Studio and I will help you:
http://scratch.mit.edu/studios/447176/projects/
Craftastic
Scratcher
62 posts

How can you get the green pipes to move on flappy bird to the left?

Ok i added it to that Studio, will you help me???
Resolvedmanx015
Scratcher
64 posts

How can you get the green pipes to move on flappy bird to the left?

Try looking in the script in my game Flappy Bird Impossible. You can download the sprite.
deck26
Scratcher
1000+ posts

How can you get the green pipes to move on flappy bird to the left?

Craftastic wrote:

ELIAPPLE7 :

I just tried that…

It duplicated flappybird and floated to the bottom. I grabbed flappybird and dragged him back where he started, and he repeated the process.

I am just so confused…

If you applied the script to the pipes and not the bird it shouldn't have had any effect on the bird.

If you're doing the usual pipes moving left to right the repeat until touching edge should be changing x rather than y. You also need to make sure that the start position doesn't mean the pipes are touching the edge. Rather than ‘repeat until touching edge’ I'd use ‘repeat until x < -230’.
iangove
Scratcher
4 posts

How can you get the green pipes to move on flappy bird to the left?

ELIAPPLE7 wrote:

Craftastic wrote:

I need help, willl someone help me please?
But there is a problem: The Touching Edge block won't work because the Y position is randomized to a certain Pos. and it would already be touching the edge.
This one would probably work:
when flag clicked
forever
create clone of (myself)

when I start as a clone
switch to costume (pick random (1) to (10) )
repeat until (touching edge)
change y by (-6.31)
if (touching edge) then
delete this clone

Maybe that would work (and sorry if the codes are wrong).
duckyducky123
New Scratcher
1 post

How can you get the green pipes to move on flappy bird to the left?

How do you get the pipes to move in code.org
Here is mine: (I want it to move)
https://studio.code.org/c/143374936
deck26
Scratcher
1000+ posts

How can you get the green pipes to move on flappy bird to the left?

duckyducky123 wrote:

How do you get the pipes to move in code.org
Here is mine: (I want it to move)
https://studio.code.org/c/143374936
This is a forum for scripts in Scratch - if we start answering questions about other packages it could quickly get out of hand.

Powered by DjangoBB