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

#1 2010-09-20 05:16:59

13suy
New Scratcher
Registered: 2010-09-20
Posts: 6

QUICK QUESTION- how do I make platforms that sprites can stand on?

I'm making this platform game and I REALLY need to know how to make platforms (e.g. boxes) that sprites can stand on...

PLEASE help me out

THANKS!

Offline

 

#2 2010-09-20 06:43:18

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: QUICK QUESTION- how do I make platforms that sprites can stand on?

There is probably an infinite way to do this- I'll post a project in a little bit that shows you the basics. In the meantime, you should probably look around for ones that you can look at and download.

EDIT: Welcome to Scratch!

big_smile -12three- big_smile

Last edited by 12three (2010-09-20 06:43:41)

Offline

 

#3 2010-09-20 10:17:52

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: QUICK QUESTION- how do I make platforms that sprites can stand on?

Welcome to scratch. There are three main ways, each with their advantages and disadvantages.

1) colour sensing: Make the platforms or the edges of the platforms a certain colour and use the "<Touching color?>" block to sense if it is touching the platform.

2) make the platform one sprite, and use the "<touching [platform]?>" block to determine if your player is touching it.

3) if all parts of the level are the same height (one flat surface) you can use the <[]<[]> (less than?) block with a (Y position) block and the height of the platform (e.g. <[(Y position)] < [-200]>

Hope that helps  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2010-09-20 21:03:48

13suy
New Scratcher
Registered: 2010-09-20
Posts: 6

Re: QUICK QUESTION- how do I make platforms that sprites can stand on?

helps lots! thanks!

Offline

 

#5 2010-09-20 21:14:40

13suy
New Scratcher
Registered: 2010-09-20
Posts: 6

Re: QUICK QUESTION- how do I make platforms that sprites can stand on?

but how do I make a sprite stand on it???

Offline

 

#6 2010-09-20 21:14:54

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: QUICK QUESTION- how do I make platforms that sprites can stand on?

And the last possible way....
If you want sensing for a specific spot, use Color [] is touching [color to be touched]
Do blah blah blah....


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#7 2010-09-20 21:17:34

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: QUICK QUESTION- how do I make platforms that sprites can stand on?

This looks like it may fit a little more nicely into the "All About Scratch" forum... That's where pretty much all programming questions go. I'll move it there for you.  smile

Offline

 

Board footer