Well I'm making a game where you are in a car driving along a barren area killing enemies while doing so. I've played games where they have the background move as you do so and that's exactly what I need! Can anyone tell me how to make one of these or show me a file from a game like that that I can download?
Offline
I predict you are talking about scrolling, are you after X axis scrolling or Y axis scrolling? if you are after x axis scrolling (right to left) check out some of my test scrollers, f you need help i can surely help! Scrolling is not too hard, but you have got to get a hold of it!
Offline
ok, Scrolling X is really simple, basically you need a variable called 'ScrollX'
and you iput this script on each sprite you want to scroll
forever set x to (ScrollX)+(48*(0))each time you add a sprite to scroll, you need to chage the *0 by 1 (add 1)
Offline
daniel_j wrote:
ok, Scrolling X is really simple, basically you need a variable called 'ScrollX'
and you iput this script on each sprite you want to scrollforever set x to ((ScrollX) + ((480) * (0)))each time you add a sprite to scroll, you need to chage the *0 by 1 (add 1)
P.S sorry for the horrible input of scratch code, i am not good with it, hope it helped!
Fixed [your v] (scripts)
Offline
SciTecCf wrote:
daniel_j wrote:
ok, Scrolling X is really simple, basically you need a variable called 'ScrollX'
and you iput this script on each sprite you want to scrollforever set x to ((ScrollX) + ((480) * (0)))each time you add a sprite to scroll, you need to chage the *0 by 1 (add 1)
P.S sorry for the horrible input of scratch code, i am not good with it, hope it helped!Fixed [your v] (scripts)
I always wondered, why do you need the scrollx + 480 * 0, when you can do scrollx + 0
Offline
ExtremelyGamer wrote:
SciTecCf wrote:
daniel_j wrote:
ok, Scrolling X is really simple, basically you need a variable called 'ScrollX'
and you iput this script on each sprite you want to scrollforever set x to ((ScrollX) + ((480) * (0)))each time you add a sprite to scroll, you need to chage the *0 by 1 (add 1)
P.S sorry for the horrible input of scratch code, i am not good with it, hope it helped!Fixed [your v] (scripts)I always wondered, why do you need the scrollx + 480 * 0, when you can do scrollx + 0
So you can copy that for the other scrolling sprites, and simply change the "0" to "1" and so on.
Offline
SciTecCf wrote:
daniel_j wrote:
ok, Scrolling X is really simple, basically you need a variable called 'ScrollX'
and you iput this script on each sprite you want to scrollforever set x to ((ScrollX) + ((480) * (0)))each time you add a sprite to scroll, you need to chage the *0 by 1 (add 1)
P.S sorry for the horrible input of scratch code, i am not good with it, hope it helped!Fixed [your v] (scripts)
Thanks for the help with the code!, haha i have never been good at it xD
Offline