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

#1 2008-10-14 05:18:41

danieldk
Scratcher
Registered: 2008-10-14
Posts: 3

Jumpping

Hi I am brand new to Scratch and stuff.
I need help with a game I am creating! (first game)
I don't know how to jump! I have scratch version 3.1
Can any of you please tell me the easiest way to make the script of jump. I don't have different costumes for jump so it's ok.

Thanks!

Offline

 

#2 2008-10-14 05:32:16

danieldk
Scratcher
Registered: 2008-10-14
Posts: 3

Re: Jumpping

I have one more question... How do I make lives for my sprite thing?

Offline

 

#3 2008-10-14 08:51:03

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

Re: Jumpping

Use a variable for lives.

Easy way to jump.

repeat 10
change y by 5
repeat 10
change y by -5

Last edited by archmage (2008-10-14 08:51:58)


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

 

#4 2008-10-14 08:57:20

zawicki1fromyoutube
Scratcher
Registered: 2008-07-31
Posts: 1000+

Re: Jumpping

archmage wrote:

Use a variable for lives.

Easy way to jump.

repeat 10
change y by 5
repeat 10
change y by -5

acctually, you should do :

[blocks]
<when[ Up arrow ]key pressed>
<repeat( 10
<change y by( 5
<repeat until> <touching color[ ground
[/blocks]

THAT is how you do it, so if you jump off a ledge, if you touch the color of the ground, you land.


|Call Of Duty: Black Ops Wii Friend Code: 3519-4456-0013|
|Follow me on Twitter|Subscribe To My Youtube Channel

Offline

 

#5 2008-10-18 09:37:31

magicslime
Scratcher
Registered: 2008-10-18
Posts: 1

Re: Jumpping

Here is a good tutorial to try:
http://scratch.mit.edu/projects/bosoxtutorial/268679

This is what I use.


"The ability to speak does not make you intelligent"

Offline

 

Board footer