Discuss Scratch

tpear152
Scratcher
1 post

scrollx

when I make a scrollx it does not work!
jji7skyline
Scratcher
1000+ posts

scrollx

Scroll x is the common name of the variable that tells the background sprites where to be.

Check out this project which is a basic scrolling game. You can remix the project to turn it into your own game
goch
Scratcher
24 posts

scrollx

Hi, tpear152!

I looked at your project. You have a lot of variables named “scroll_x”.
But you should have only ONE variable “scroll_x” for ALL SPRITES.

In the backdrop you have to make this script:

When green flag clicked
set scroll_x to 0
forever
change scroll_x by 1
end

I hope this helps.


TheSupremeOverLord
Scratcher
99 posts

scrollx

Check out this nifty wiki artical. It gives plenty of information of scrolling. Hope this helped!

-Supreme

Last edited by TheSupremeOverLord (Oct. 30, 2013 18:44:00)


THE GAME (you just lost)
Chrome 23.0.1271.101 on iMac running Mac OSX Mountain Lion 10.8.2 with Flash Player 11.4.402.287
Buy it, use it, break it, fix it, Trash it, change it, mail – upgrade it, Charge it, point it, zoom it, press it, Snap it, work it, quick – erase it, Write it, cut it, paste it, save it, Load it, check it, quick – rewrite it, Plug it, play it, burn it, rip it, Drag and drop it, zip – unzip it, Lock it, fill it, call it, find it, View it, code it, jam – unlock it, Surf it, scroll it, pause it, click it, Cross it, crack it, switch – update it, Name it, rate it, tune it, print it, Scan it, send it, fax – rename it, Touch it, bring it, pay it, watch it.
Technologic.
; Preserve the semi-colons! ;

Powered by DjangoBB