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

#1 2010-09-18 15:10:11

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

One more question about Jumping

How can I get the sprite1 to jump farther and not immediately land on sprite2?  Right now sprite1 jumps and then immediately lands on sprite2, so the game is immediately over.  I need to be able not to have sprite1 land on sprite2.

Offline

 

#2 2010-09-18 15:18:54

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: One more question about Jumping

Depends how you coded it.  Do you have the project somewhere or a picture of the script?


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2010-09-18 15:20:39

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: One more question about Jumping

Just increase the amount of steps Sprite1 takes when you press the right or left arrow key.


Yawn.

Offline

 

#4 2010-09-19 13:18:07

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: One more question about Jumping

Click on my name and download problem game number 2 to see the game

Offline

 

#5 2010-09-19 13:23:29

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: One more question about Jumping

As meowmeow55 said, increase the speed the cat can move.  You could also add velocity to the cat so that if you try and quickly change directions, it's harder.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#6 2010-09-19 13:28:36

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: One more question about Jumping

Two things. First, change the number of steps the cat moves (e.g. from 1 and -1 to 3 and -3).

Second, add some delay to the dog turning around. Right now you have:

Code:

if (x position of Sprite2 < x position)    {
    set pointforward to 1
} else    {
    set pointforward to 0
}

Change it to:

Code:

if (x position of Sprite2 + (60 * dir) < x position)    {
    set pointforward to 1
} else    {
    set pointforward to 0
}

Where dir is a variable you set to 1 when moving right and -1 when moving left. You could also experiment with the 60 number.

Last edited by S65 (2010-09-19 13:29:01)

Offline

 

#7 2010-09-19 13:28:44

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: One more question about Jumping

can you remix the game so I can see it? Thank you in advance  smile   smile   big_smile

Offline

 

#8 2010-09-19 13:59:52

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: One more question about Jumping

please help people

Offline

 

#9 2010-09-19 18:44:44

lasc12
Scratcher
Registered: 2007-11-18
Posts: 100+

Re: One more question about Jumping

Awesomeman98 wrote:

can you remix the game so I can see it? Thank you in advance  smile   smile   big_smile

Can't you do it?


Thus I have spoken.

Offline

 

Board footer