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

#1 2011-08-26 17:22:11

scratchU8
Scratcher
Registered: 2009-09-08
Posts: 100+

Platforming without bouncy-ness

Usually, I use the platforming thing they do in 8Scrolling Demo. But I found out, that the player bounces up and down like it's having a seisure, and that can lead to glitches. Do you know a way where it senses you're on a platform or not WITHOUT bouncing?

Offline

 

#2 2011-08-26 23:20:54

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Platforming without bouncy-ness

Bouncing? Like very short bounces?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#3 2011-08-27 00:47:59

Flait7
Scratcher
Registered: 2008-04-14
Posts: 100+

Re: Platforming without bouncy-ness

http://scratch.mit.edu/projects/Flait7/215686 This game doesn't have the bouncing when the person's landed.


http://scratch.mit.edu/static/projects/Flait7/2248016_sm.pnghttp://scratch.mit.edu/static/projects/Flait7/1827934_sm.png

Offline

 

#4 2011-08-27 14:16:12

Death_Wish
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Platforming without bouncy-ness

Flait7 wrote:

http://scratch.mit.edu/projects/Flait7/215686 This game doesn't have the bouncing when the person's landed.

That's because most platformers have something to make it go to the top. In yours, it doesn't have that, so it doesn't bounce, but instead of going up the platform when it touches it, it stays in the middle until you jump.

The reason is because they use if touching color red, let's say, change y by 2, every time it touches red it goes up a little bit. That means that if it touches red, it goes to the top of the red platform, but it also means that every time it is on the red platform, it goes up a tiny bit. Then, it falls back down to the red platform, and as it moves up y by 2 every time it touches red, it'll bounce.


With a straight flush.
http://4.bp.blogspot.com/-FlUhnzmIROE/TgtpjdJl4tI/AAAAAAAABCM/W19pvFTZFaU/s1600/save_the_world.png http://blocsonic.com/images/special/rip-stevejobs.jpg

Offline

 

#5 2011-08-27 18:38:22

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Platforming without bouncy-ness

If I know what you're talking about, that "seizure" thing usually goes away in Presentation mode.  If that's not what you're talking about, and you mean creating a platformer where when you land on a surface you don't bounce back up, those are more difficult.  My project Bounce does it by using another sprite as a sensor.  I'm fairly certain I know a method of doing it without a sensor (either color or external sprite), a method I'm currently using to minimize the effects, but it requires a number of if-statements directly proportional to the max speed of your y-velocity if that's okay.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#6 2011-08-28 20:06:46

scratchU8
Scratcher
Registered: 2009-09-08
Posts: 100+

Re: Platforming without bouncy-ness

Yep, that one. But with the scrollY and everything, it dosen't go away in presentation mode. D:

Last edited by scratchU8 (2011-08-28 20:07:48)

Offline

 

#7 2011-08-29 12:28:52

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Platforming without bouncy-ness

Are you using y-velocity?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer