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

#1 2008-10-05 11:34:22

g8rghr
Scratcher
Registered: 2007-11-03
Posts: 100+

Scrolling games

Post a link to all of the scrolling games you have- and scrolling games only! To post a link, right-click on your project and say Copy Link Location or Copy Shortcut. Then, right-click where you want to post the link and press Paste. Also, If you can, explain how to scroll.

Here is how to scroll-
Make a variable called ScrollX. Then, for the main character, do this script-
When Green Flag pressed:
Forever:
If: {key [right arrow]} pressed, change [ScrollX] by: -5
If: {key [left arrow]} pressed, change [ScrollX] by: 5

For the first terrain, do this-
When Green Flag Pressed:
Forever:
Set X to: (ScrollX+ ScrollX*0)

For the second terrain, do this:
When Green Flag Pressed:
Forever:
Set X to: (ScrollX+ ScrollX*1)

For the third terrain, do this:
When Green Flag Pressed:
Forever:
Set X to: (ScrollX+ ScrollX*2)

For each terrain, if you've noticed you have to do this script:
When Green Flag Pressed:
Forever:
Set X to: (ScrollX+ ScrollX* (however many many you multiplied by in the last terrain + 1))

My first scrolling game is this:http: http://scratch.mit.edu/projects/g8rghr/280058

My other scrolling project is a scrolling tutorial. http://scratch.mit.edu/projects/g8rghr/281987

P.S. Please look at my post your favorite project forum entry and my post your idea for projects forum entry.

Last edited by g8rghr (2008-10-18 11:10:33)


http://scratch.mit.edu/static/projects/g8rghr/1635124_sm.png  http://scratch.mit.edu/projects/g8rghr/1635124 My new number one project: ZOMBIES! Based on the Zombies from Call of Duty. Check it out!

Offline

 

#2 2008-10-05 12:01:01

b_g
Scratcher
Registered: 2008-07-09
Posts: 36

Re: Scrolling games

Heres a scrolling demo: http://scratch.mit.edu/projects/b_g/283496

Offline

 

#3 2008-10-05 13:40:40

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Scrolling games

This is the thread which most other scrolling tutorials are based on.
http://scratch.mit.edu/forums/viewtopic.php?id=2440

Try method 2 in this thread. It is much more efficient and it automatically loops.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-10-05 13:43:18

jasb
Scratcher
Registered: 2007-11-10
Posts: 100+

Re: Scrolling games

Here is my 4 way scrolling james bond game http://scratch.mit.edu/projects/jasb/283321

Offline

 

#5 2008-10-13 21:05:18

gtoji
Scratcher
Registered: 2008-10-13
Posts: 1

Re: Scrolling games

Far from finished, but its the basis of the game engine
GTA: Scratch City
http://scratch.mit.edu/projects/gtoji/291510

Offline

 

#6 2008-10-14 09:08:07

tro95
Scratcher
Registered: 2008-02-20
Posts: 78

Re: Scrolling games

Guys I am the scrolling master, dont sweat to ask me a question about scrolling or if your really stuck I can put in all the scrolling for you. I know of every type of scrolling known and am very knowledgable in it.

Try some of my scrolling tutorials!!!

Scrolling for all occasions! The new book of TRO project with all forms of scrolling included! Out soon!!!!

PLEASE DO NOT POST A REPLY ON THE FORUMS AS I WILL BE UNABLE TO REPLY, JUST LEAVE A COMMENT ON ANY OF MY PROJECTS

Offline

 

Board footer