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

#1 2008-01-01 12:55:38

liphttam1
Scratcher
Registered: 2007-05-16
Posts: 30

how do you make good platforms

in a games im always making  walls or platforms drawings not sprites and they eather stick to it or bounce up and down

Ps. how do you make clear scrolling like press and hold a butten it starts moves one and then stops and then move again


http://www.readwritethink.org/lesson_images/lesson936/butteredtoast-200.jpg

Offline

 

#2 2008-01-01 13:26:27

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: how do you make good platforms

For platformer type movement see the sprite movement done right project. http://scratch.mit.edu/projects/archmage/72848

To get it to not stick you have to make the sprite move up when the bottom of the sprite is touching a ground sprite. Since scratch lacks co-ordinate hitTesting the best you can do is use colour sensing or make a sprite that follows the bottom of the player and if that sprite is touching the ground then move the player sprite up. Neither are great solutions but they are the best solutions available.

As for scrolling, go to the scrolling thread http://scratch.mit.edu/forums/viewtopic.php?id=2440


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer