Hello Everyone
I am currently working on my new scratch project for my school course. I plan to make a side scroller shoot 'em up like the games R-type, UN Squadron, Defender. I have only just made moments ago :p but I already cannot wrap my head around the side scrolling needed for the game.
<when green flag clicked>
<forever>
<if><( <{ globalx }><<> 240 )>
<go to x (( -110<-> globalx )) )y
0
<show>
<else>
<hide>
<end>
This was used for the first peice of background for side scrolling in a tutorial. But I am not sure how it works? There are other peices of the background I need to place onto the game but I am not sure how to position it into the correct co-ordinates so they don't overlap. Can anyone help me with a explanation or other resources that could teach and help me understand.
Another question would be for the game is the level must consistently move forward (like R-type,Gradius) I am asking if this is possible on Scratch because I have not seen it done before, and if anyone knows anything that could help me with this I would greatly appreciate it the help.
Thanks you for anyones time.
Offline
Archmage made a perfect scrolling formula here http://scratch.mit.edu/projects/archmage/635312 you can just copy the script. As for how to make it constantly move forward, I will reply back if I find something.
Offline
how about
<when green flag clicked>
<forever>
<if><key[ over ]pressed?>
<next costume>
that should do!
Offline
Kokan wrote:
Another question would be for the game is the level must consistently move forward (like R-type,Gradius) I am asking if this is possible on Scratch because I have not seen it done before, and if anyone knows anything that could help me with this I would greatly appreciate it the help.
Thanks you for anyones time.
How long is each level? I not sure but I think that since you are always moving forward you can have 3 background sprites. When one sprite goes from one end of the screen to the other it goes backbehind the other background sprites. A good example of this would be the example project SNN#1 under the stories folder.
Offline
Hello again.
I have the background automatically scrolling now to the end. But a new problem has risen t_t I'm thinking of some kind of way to loop the background back to start if it's possible but this seems kinda difficult at the moment, but I could just always create more background sprites.
I've tried searching for games similair to the one I am planning to make but I can't seem to find any, does anyone know example scratch projects on the website?
Offline
http://scratch.mit.edu/projects/Locomule/708768
This uses a modded scrollx that picks random costumes to simulate a never ending random dungeon. Just use the same method (without the vertical scrolling) but instead of random costume changes, have them increase or decrease by one depending on the players direction.
Peace bro.
Offline
I hope this will do. Its my own scroll game. Its a bit glitchy. I can patch it if you really want me to. Its a bit messy as well.
Last edited by j-max04 (2009-10-30 03:53:14)
Offline