This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-02-28 17:17:03

Tildi_1
Scratcher
Registered: 2009-12-10
Posts: 3

Sprite gliding...

Here is a question that I still can't figure the answer to. How do you make a sprite move back and forth on the x axis? I've tried to use the [blocks]<change x by( [/blocks]
block, but it gets stuck on one side... sad

Please help- I need it so I can make an arcade game( the space one where you move back and forth on the bottom of the screen- shooting at the ships at the top).

Thanks for the help!

Offline

 

#2 2010-02-28 18:21:52

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Sprite gliding...

You can place negative numbers in the block.  smile
They will make the sprite move left.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2010-02-28 18:41:53

Tildi_1
Scratcher
Registered: 2009-12-10
Posts: 3

Re: Sprite gliding...

Chrischb wrote:

You can place negative numbers in the block.  smile
They will make the sprite move left.

I tried that too, it still gets stuck bouncing off the wall- then trying to do it again!
Any other ideas?

Offline

 

#4 2010-02-28 18:46:43

Tildi_1
Scratcher
Registered: 2009-12-10
Posts: 3

Re: Sprite gliding...

By the way, the zones project is good- I do recommend adding more variety. That was probably the first(and last) time I've seen a project that simple... cool

Offline

 

#5 2010-02-28 21:02:45

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Sprite gliding...

Tildi_1 wrote:

Chrischb wrote:

You can place negative numbers in the block.  smile
They will make the sprite move left.

I tried that too, it still gets stuck bouncing off the wall- then trying to do it again!
Any other ideas?

Are you using the [if on edge, bounce] block?


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#6 2010-02-28 21:37:23

Dazachi
Retired Community Moderator
Registered: 2009-09-12
Posts: 1000+

Re: Sprite gliding...

If it isn't working, then it is some sort of glitch. But it should work. Just to make sure you are doing it right:
<change x by( 50
<change x by( -50


Dazachi, Retired Community Moderator
May also know me as OJACheung.

Offline

 

Board footer