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

#1 2010-06-25 18:01:37

TotalRevamp
Scratcher
Registered: 2010-05-23
Posts: 28

How to make a never-ending Scroll X

Hey,

I'm trying to make a sort of Launcher game where you launch an object as far as possible but cant get my ground to move with underneth the object as it moves can you help?

Thanks,

TR

Offline

 

#2 2010-06-26 06:47:54

Greentabby55
Scratcher
Registered: 2010-05-04
Posts: 50

Re: How to make a never-ending Scroll X

<when green flag clicked>
<repeat until><touching[ ground
  <if><touching[ edge
    <broadcast[ change
  <end>
<end>

Put that script in whatever is being launched.

Now, put this script in the ground.

<when I receive[ change
<next costume>

Make sure the ground has different costumes, so when it changes, it looks like the ground is moving.

I believe that should do it.

Offline

 

#3 2010-06-26 08:31:58

TotalRevamp
Scratcher
Registered: 2010-05-23
Posts: 28

Re: How to make a never-ending Scroll X

Yes I was thinking about this but a was also thinking about the sort of script in the game Kitten Cannon → http://scratch.mit.edu/projects/bosox397/364195. Unfortunatly I can't make head nor tail of it so am struggling to put it in my own game.

Offline

 

#4 2010-06-27 17:55:25

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: How to make a never-ending Scroll X

Here is one I just helped someone with (their script btw, not mine) maybe it will help. It uses 2 images that scroll horizontally forever.

Infinite Side Scroller


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer