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

#1 2010-10-25 17:41:19

DoodleGuy
Scratcher
Registered: 2010-10-09
Posts: 7

scrollx and using the pen

{If this is the wrong section, I am sorry}
------------------------------------------------------

Now I've been thinking over this for quite some time, and I'd like to essentially remake Free Rider (a game where you can create a track for your player to ride) but I am completly lost as to how I might be able to do so.

So if anybody knows how to create a track making game where you can ride around which uses scrolling, please do tell me.

Hope I make sense!

Offline

 

#2 2010-10-26 03:48:08

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: scrollx and using the pen

You would have to have a scrolling course which you can draw with the pen.  I suggest you have 2 lists
Scroll X
Scroll Y


You would then have,
When flag clicked
forever if < <mouse down?> and < <mouse Y > -140> and <mouse Y < 120> >
| repeat until < not <  <mouse down?> and < <mouse Y > -140> and <mouse Y < 120> > >
| add (mouseX) to scroll X
| add (mouseY) to scroll Y
| wait 0.1 secs
|_____________________--
| add Pen up to ScrollX
| add Pen up to ScrollY
|_____________________

This would give all the points for the lines!

Last edited by johnnydean1 (2010-10-26 03:48:16)


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-10-26 04:15:47

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: scrollx and using the pen


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer