Scrollx? You mean as a variable?
Offline
Well, on the character's sprite, instead of saying:
"When left key pressed - change x by (whatever speed you want)
you say:
"When left key pressed - change (SCROLLX) by (whatever speed you want)
Then, on a background sprite, you say:
set x position to ((SCROLLX) * (480 * BACKGROUND NUMBER))
I hope this isn't confusing!
Last edited by johndo77 (2010-10-12 18:51:17)
Offline
It's a variable.
In theory, You could name it anything,
It doesn't have a specified function like the other blocks.
You can make scrolling games by using it to have the Background change costumes.
Offline
You can check out my project. http://scratch.mit.edu/projects/KobyStudios/2003639
Offline
KobyStudios wrote:
You can check out my project. http://scratch.mit.edu/projects/KobyStudios/2003639
Please do NOT spam. It gets annoying.
@ topic creator The others are right.
Next time, put this in all about scratch if you need help with a problem.
Offline
ImagineIt wrote:
KobyStudios wrote:
You can check out my project. http://scratch.mit.edu/projects/KobyStudios/2003639
Please do NOT spam. It gets annoying.
@ topic creator The others are right.
Next time, put this in all about scratch if you need help with a problem.
Spamming is posting the link over and over again.
Or posting the link when it has nothing to do with the topic.
The project, "Escape", is a scrolling game that uses scrollx.
The topic creator could download the project and look at the scripts to see how scrollx works.
Offline