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

#1 2013-04-04 00:35:29

ZINGERX
Scratcher
Registered: 2013-02-18
Posts: 16

How to jump easily.

This is the easiest way to jump easily.

Offline

 

#2 2013-04-04 00:47:35

ZINGERX
Scratcher
Registered: 2013-02-18
Posts: 16

Re: How to jump easily.

when key up arrow pressed
forever
repeat (10)
change y by (10)
end
forever
repeat (10)
change y by (-10)
end

Offline

 

#3 2013-04-04 09:51:13

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How to jump easily.

The only problem with this is that is
The ground would have to be perfectly level and without any platforms in order to work,


Regards,

CAA14

Last edited by CAA14 (2013-04-04 18:22:48)

Offline

 

#4 2013-04-04 11:03:47

topazdragonlord
Scratcher
Registered: 2013-02-22
Posts: 500+

Re: How to jump easily.

ZINGERX wrote:

when key up arrow pressed
forever
repeat (10)
change y by (10)
end
forever
repeat (10)
change y by (-10)
end

when [up arrow v] key pressed
repeat (10)//change the 10 to a number you want.
  change y by (10)//change the 10 to a number you want.
  end
repeat (10)//change the 10 to a number you want.
  change y by (-10)//change the -10 to a number you want.
  end
Fixed  smile


http://i45.tinypic.com/idumbk.png

Offline

 

#5 2013-04-08 03:47:04

GiorgosKarvelas365
New Scratcher
Registered: 2013-03-01
Posts: 37

Re: How to jump easily.

when key [up arrow v] pressed
forever
repeat (10)
change y by (10)
end
forever
repeat (10)
change y by (-10)
end

Offline

 

#6 2013-04-08 11:47:07

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How to jump easily.

GiorgosKarvelas365 wrote:

when key [up arrow v] pressed
forever
repeat (10)
change y by (10)
end
forever
repeat (10)
change y by (-10)
end

Yep. Without the forever loop, the test would only be run once...

Regards,

CAA14

Offline

 

#7 2013-04-08 18:17:30

coinman
Scratcher
Registered: 2011-04-19
Posts: 500+

Re: How to jump easily.

The easiest way that works with platforms is this:

when gf clicked
forever
if <touching [platforms v]?>
change y by (1)
if <[up arrow v] key pressed?>
repeat (4)
change y by (10)
end
end
else
change y by (gravity, must be negative!)
end
end


Click the picture below to play my best game yet, Snowball Fight!
http://scratch.mit.edu/static/projects/coinman/3221194_sm.png

Offline

 

Board footer