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

#1 2011-07-30 16:53:04

sportsdude6
Scratcher
Registered: 2011-07-25
Posts: 1000+

how do you jump without going sideways?

Just wondering

Offline

 

#2 2011-07-30 16:56:29

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: how do you jump without going sideways?

I don't know what you mean; are you looking for a script that allows your character to jump?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2011-07-30 17:07:32

sportsdude6
Scratcher
Registered: 2011-07-25
Posts: 1000+

Re: how do you jump without going sideways?

In a video by Mick(how to make a game steps 1 and 2) it said to change direction to 0 when you press up key and I did it so the character turned sideways

Offline

 

#4 2011-07-30 17:09:31

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: how do you jump without going sideways?

sportsdude6 wrote:

In a video by Mick(how to make a game steps 1 and 2) it said to change direction to 0 when you press up key and I did it so the character turned sideways

That doesn't work on platformers. the simplest way is:

If key up arrow pressed
repeat 10
change y by 10
end
repeat until touching ground color
change y by -10
end

Offline

 

#5 2011-07-30 17:21:06

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: how do you jump without going sideways?

imagine, you need a wait block in there, otherwise it wuold do it emidiatley, so updown really quickly, which is not what you want. You want smoother movement.


I'm back.
Maybe.

Offline

 

#6 2011-07-30 21:52:12

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: how do you jump without going sideways?

DigiTechs wrote:

imagine, you need a wait block in there, otherwise it wuold do it emidiatley, so updown really quickly, which is not what you want. You want smoother movement.

You don't need wait. I did that all the time before I learned velocity.

Offline

 

Board footer