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

#1 2008-09-09 16:25:55

andy321
Scratcher
Registered: 2008-08-06
Posts: 53

trouble with jumping.

i'm making a platformer, but for jumping i have a problem. here's the script.<when[up arrow  ]key pressed> <repeat( 10<change y by( 10<repeat until> <touching color[ << <  <or>  >><touching color[   <change y by( -10  the problem is,when the caracter goes off the platform, instead of falling,he keeps going. what do i do?

Offline

 

#2 2008-09-09 17:39:11

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: trouble with jumping.

andy321 wrote:

i'm making a platformer, but for jumping i have a problem. here's the script.<when[up arrow  ]key pressed> <repeat( 10<change y by( 10<repeat until> <touching color[ << <  <or>  >><touching color[   <change y by( -10  the problem is,when the caracter goes off the platform, instead of falling,he keeps going. what do i do?

OK, now this would be an All About Scratch problem. But try looking here for a gravity script (more realistic jumping)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-09-10 16:01:04

andy321
Scratcher
Registered: 2008-08-06
Posts: 53

Re: trouble with jumping.

okay, but that pretty much doesn't solve my problem.

Offline

 

Board footer