Well, the easiest way would be for you to generate a list that has, say 20 items that are random and if you move past the one set to item ten, it deletes the first item and adds a random one to the end, but if you go less than ten, it deletes the last item and adds a random one to the begining. Actually, that's probably a hard way to do it, unless you want it to be the same when you go backwards, and in that case, don't use the deletes.
Offline
The only issue I can see would be that going backwards could yield different results. What I would do is simply have it add a new item as it is needed, so the list doesn't get crowded too much, and since a user probably isn't going to go awfully far.
Offline
Try looking at the scripts of archmage's project "Glide Scrolling Demo".
Here's a link
Not to take credit, though.
Offline
JeanTheFox wrote:
Try looking at the scripts of archmage's project "Glide Scrolling Demo".
Here's a link
Not to take credit, though.![]()
That's a great example - but that project doesn't scroll infinitely, unfortunately.
Offline
coolstuff wrote:
JeanTheFox wrote:
Try looking at the scripts of archmage's project "Glide Scrolling Demo".
Here's a link
Not to take credit, though.![]()
That's a great example - but that project doesn't scroll infinitely, unfortunately.
Hmm... I can send you some screenshots. Of the scripts, that is.
Offline
JeanTheFox wrote:
coolstuff wrote:
JeanTheFox wrote:
Try looking at the scripts of archmage's project "Glide Scrolling Demo".
Here's a link
Not to take credit, though.![]()
That's a great example - but that project doesn't scroll infinitely, unfortunately.
Hmm... I can send you some screenshots. Of the scripts, that is.
Sure! I'm still not entirely sure how that would fix the problem of it not scroll infinitely, but I don't see why you shouldn't
Offline
Sprite1 (Background size):
Sprite2 (Background size):
Stage:
There!
Hope this helps ,
Scratch On!
Offline
fg123 wrote:
Thanks!
![]()
Coolstuff: Backwards is not a problem. It has automatic forward scrolling.
Oh, so you won't be able to go backwards? Then it really should be easy - take something along the lines of what JeanTheFox posted, then - it seems I grossly misunderstood your question.
Offline
coolstuff wrote:
JeanTheFox wrote:
Try looking at the scripts of archmage's project "Glide Scrolling Demo".
Here's a link
Not to take credit, though.![]()
That's a great example - but that project doesn't scroll infinitely, unfortunately.
Try this one http://scratch.mit.edu/projects/archmage/82995
Also, it doesn't scroll forever because it was told not to. There is a script on the cat sprite with the variables Rightscrolllimit and leftscrolllimit just remove the blocks that contain those variables/
Offline
archmage wrote:
coolstuff wrote:
JeanTheFox wrote:
Try looking at the scripts of archmage's project "Glide Scrolling Demo".
Here's a link
Not to take credit, though.![]()
That's a great example - but that project doesn't scroll infinitely, unfortunately.
Try this one http://scratch.mit.edu/projects/archmage/82995
Also, it doesn't scroll forever because it was told not to. There is a script on the cat sprite with the variables Rightscrolllimit and leftscrolllimit just remove the blocks that contain those variables/
Oh! Didn't realize that; sorry.
Offline
The project jeanthefox posted has a cat sprite with scripts that limit the scrolling. The one I posted has no cat sprite and does not limit scrolling.
Offline