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...
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
Tildi_1 wrote:
Chrischb wrote:
You can place negative numbers in the block.
![]()
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?
Offline
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
Offline