This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-04 06:15:36

Shinkaze
Scratcher
Registered: 2012-05-27
Posts: 44

Side-Scrolling Platformer - Any tips?

Hey Scratchers!
I have got a good grip on Scratch, since I downloaded it a lot earlier than I joined the website. I have already made a game (with about 130 sprites and 667 scripts) called Avoid the Red, which took me about a month to make. You can play it here.

Anyway, my next project is a 2D Side-Scrolling Platformer, with a little character who needs to get to the far right of the screen. This involves Scroll X and Scroll Y but I do not know how to use those.

Could any Scratcher answer some of these queries:
How do I use Scroll X and Scroll Y?
How do I program the character so it can 'stand' on the 'ground' sprite and not fall to the bottom of the screen?
Can I have a script that spawns enemies?


Answers to the above and/or other tips would be greatly appreciated - and you will be credited when the game eventually comes out.

Thank you,
SK


http://thisisagoodbook.com/images/shinkazesig2.png

Offline

 

#2 2012-06-04 06:48:03

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Side-Scrolling Platformer - Any tips?

You could follow this for scrolling backgrounds http://scratch.mit.edu/forums/viewtopic.php?id=2440
A sample template:
http://scratch.mit.edu/projects/archmage/635312

You could find more stuff on the forums. I'm making a 2D game myself, still unfinished and buggy though and I also need help  smile  http://scratch.mit.edu/projects/Joshlolx/2558541

Offline

 

#3 2012-06-04 11:22:34

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Side-Scrolling Platformer - Any tips?

I'm certain there is a wiki somewhere about scrolling...Ah yes, here it is. If you are using a sprite for the ground, which you will need at least two for a scroller, in the player sprite, have a script that says,

when gf clicked
forever
if <touching [ground v]?>
change y by [1]
if <key [up arrow v] pressed?>
jump//not a real block, but your jumping stuff goes here.
end
end

Last edited by sonicfan12p (2012-06-04 11:29:40)


Why are the secret organizations getting all the attention?  mad

Offline

 

#4 2012-06-04 11:28:31

wasabi56
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: Side-Scrolling Platformer - Any tips?

Shinkaze wrote:

Hey Scratchers!
I have got a good grip on Scratch, since I downloaded it a lot earlier than I joined the website. I have already made a game (with about 130 sprites and 667 scripts) called Avoid the Red, which took me about a month to make. You can play it here.

Anyway, my next project is a 2D Side-Scrolling Platformer, with a little character who needs to get to the far right of the screen. This involves Scroll X and Scroll Y but I do not know how to use those.

Could any Scratcher answer some of these queries:
How do I use Scroll X and Scroll Y?
How do I program the character so it can 'stand' on the 'ground' sprite and not fall to the bottom of the screen?
Can I have a script that spawns enemies?


Answers to the above and/or other tips would be greatly appreciated - and you will be credited when the game eventually comes out.

Thank you,
SK

I made a ok visual tutorial


http://i.picasion.com/pic58/c23d4d2fc75f459dcf3d9ebf3e8ba395.gif
http://www.weebly.com/uploads/1/0/1/4/10146167/2294523_orig.png

Offline

 

#5 2012-06-05 13:36:11

Shinkaze
Scratcher
Registered: 2012-05-27
Posts: 44

Re: Side-Scrolling Platformer - Any tips?

Thank you all!
But I still have one question - on my terrain, I have a flat house with a box next to it, intended for the player to jump on to continue in the level. How do I program it so my player can do that?

SK


http://thisisagoodbook.com/images/shinkazesig2.png

Offline

 

#6 2012-06-05 15:33:19

Shinkaze
Scratcher
Registered: 2012-05-27
Posts: 44

Re: Side-Scrolling Platformer - Any tips?

Bump.

SK


http://thisisagoodbook.com/images/shinkazesig2.png

Offline

 

Board footer