I am about to make a 1s1s scroller, because I have almost mastered the art of it. i have noticed they are fairly popular.
(of course they are! XD)
It uses stamping etc. It is hard to explain....
First, the 1 sprite all at once (in a blink of an eye) Stamps out in all the scrolling locations.
Then the sprite turns into the players format, and the game begins.
<direction>
Last edited by Morphed (2010-01-03 19:44:45)
Offline
Hmm. That Sounds Cool!
So, How Do U Make 1 Of Those?
Offline
gbrox wrote:
Hmm. That Sounds Cool!
So, How Do U Make 1 Of Those?
I'll explain with one of my games: SLIME maze
(I'm going to strip the script to just the basics, no coin collection, collision detection etc)
<when green flag clicked>
<forever>
<clear>
<switch to costume[ land1
<go to x
<{ scrollX }> )y
<{ scrollY }>
<stamp>
<switch to costume[
<if><key[ left arrow ]pressed?>
<change{ scrollX }by( 10
<if><key[ right arrow ]pressed?>
<change{ scrollX }by( -10
The first thing that happens is clearing everything.
Then, the background costume is stamped (you may also need more than one, so you might have extras that say scrollX+480 etc)...
Then the game checks if arrow keys are pressed and changes the scroll variable.
If you want to use collision detection, it needs to be color-based. Instead of putting weird colors on your sprite, you could have a bunch of hit-tests stuck together that work before your character is stamped. And you might need velocity too ^_^
Last edited by juststickman (2010-01-09 05:50:17)
Offline
RHY3756547's LINE is a great example of a 1 sprite 1 script scroller.
Offline
Jonathanpb wrote:
RHY3756547's LINE is a great example of a 1 sprite 1 script scroller.
The only problem is, when you try to look at the script your computer freezes (stupid comments -.-)
Offline
juststickman wrote:
Jonathanpb wrote:
RHY3756547's LINE is a great example of a 1 sprite 1 script scroller.
The only problem is, when you try to look at the script your computer freezes (stupid comments -.-)
Yeah... most of his projects are very good in offline presentation mode... but not this one. But it's very good.
Offline