i am making a scroller game, but i have the problem that the terrian sprites pile up at the edges of the screen, if you know a way to help please tell me
the scroll script is
<when green flag clicked>
<forever>
<if><key[ left arrow ]pressed?>
<change{scrollx }by(-3.5)
<if>
<key[ right arrow ]pressed?>
<change{ scrollx }by( 3.5)
thanks!
______________
i'm allergic to scratchcats, AAAACHOOOO
Offline
Use: 
This makes the sprites that pile on the edges disappear, but reappear when they move into view. "Abs" just means always the positive.
Offline
Kileymeister wrote:
This makes the sprites that pile on the edges disappear, but reappear when they move into view. "Abs" just means always the positive.
I should use that some time.
Offline
it worked ok, but one ofd the sprites doesnt reappear, it isnt perfect but it is better
_________________________________
<when green flag clicked>
<forever>
<say[ <{ if you are reading this, HI! }>
Offline
GoboAddict wrote:
it worked ok, but one ofd the sprites doesnt reappear, it isnt perfect but it is better
_________________________________
<when green flag clicked>
<forever>
<say[ <{ if you are reading this, HI! }>[/block]
If it doesn't work, it's probably because the boundaries (the 200 and 150) are too far. Set the sprite as far off screen as you can (use a block like "set x to 500000") then set the 200 in "abs of x < 200" to a number less than it's new position.
Last edited by Kileymeister (2010-12-27 17:30:47)
Offline
If i am making a scroller, and am being lazy, I just make a border around the screen to hide the terrain and other sprites.
Offline