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

#1 2012-08-24 12:01:51

heat33330
New Scratcher
Registered: 2012-06-17
Posts: 16

Scratch 1.4 Scrolling Game?

Hi I would like to create a scrolling game in scratch that would scroll horizontally but I do not know how. Can someone help me? Thanks!

Offline

 

#2 2012-08-24 12:04:21

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Scratch 1.4 Scrolling Game?

We have a nice Wiki article on it.  smile  Ask if you have any questions!  big_smile

By the way, this belongs in Help with Scripts.  smile


http://i50.tinypic.com/312u714.jpg

Offline

 

#3 2012-08-24 12:14:03

heat33330
New Scratcher
Registered: 2012-06-17
Posts: 16

Re: Scratch 1.4 Scrolling Game?

Thanks!

Sorry it's my first topic and I didn't know to post it here or somewhere else.

Offline

 

#4 2012-08-24 12:19:06

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Scratch 1.4 Scrolling Game?

Don't worry, a moderator will move it for you soon.  smile


http://i50.tinypic.com/312u714.jpg

Offline

 

#5 2012-08-29 15:20:30

SFollis
Scratcher
Registered: 2012-03-04
Posts: 76

Re: Scratch 1.4 Scrolling Game?

For the terrain

when gf clicked
forever
goto x: ((scrollx)+((480)*(0))) y: (0) // you can have 0 as anything
end
For the player
when gf clicked
set [scrollx v] to (0)
forever
   if <key [right arrow v] pressed?>
      change [scrollx v] by (-1)
   end
   if <key [left arrow v] pressed?>
      change [scrollx v] by (1)

Last edited by SFollis (2012-08-29 15:21:40)


http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1 is a picture of my project http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1 which has http://blocks.scratchr.org/API.php?user=SFollis&amp;action=projects&amp;type=newest&amp;return=views&amp;num=1 views

Offline

 

Board footer