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

#1 2011-07-24 13:42:26

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Jumping with the Sprite

Okay you may have known my topic called Scrolling x and y. Okay this is basically it but with the same game but it is a platformer with velocity and no scrolling. So I need help with the y velocity. I can never make the sprite you control jump without going back down (using velocity). And the left and right and jumping are in different scripts. The jumping will never work for me using velocity. So I basically say if key up arrow pressed change yvel by 0.5. That worked but it jumped and did not come back down. So I wanted it to come back down and added wait 1 second block change yvel by -0.5. I ran it and tested it. I pressed the up arrow key and it did not jump!! Please help me!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#2 2011-07-24 13:47:49

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Jumping with the Sprite

Maybe you should upload it so other people can download it and tell you the answer.

Offline

 

#3 2011-07-24 13:48:24

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

laptop97 wrote:

Maybe you should upload it so other people can download it and tell you the answer.

But do you know??

Last edited by Thescratch3 (2011-07-24 13:50:00)


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#4 2011-07-24 13:52:42

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

Okay laptop97 I uploaded it go to Scratch3testaccount look at the FIRST project not the second!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#5 2011-07-24 13:52:48

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

Re: Jumping with the Sprite

You're working with velocity, not strict y movement. Changing the y velocity by -0.5 will set it to 0, meaning your sprite won't move along the y plane. You have to decrease it by more than 0.5.


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

 

#6 2011-07-24 13:57:54

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

Harakou wrote:

You're working with velocity, not strict y movement. Changing the y velocity by -0.5 will set it to 0, meaning your sprite won't move along the y plane. You have to decrease it by more than 0.5.

Thanks Harakou I am trying that out!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#7 2011-07-24 14:00:08

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

Harakou wrote:

You're working with velocity, not strict y movement. Changing the y velocity by -0.5 will set it to 0, meaning your sprite won't move along the y plane. You have to decrease it by more than 0.5.

UGH!! I tried -1.5 and it did not work!!!! Never mind I am trying something else... I misunderstood you now I understand you so I am testing it out now.
Okay it DID NOT work.

Last edited by Thescratch3 (2011-07-24 14:02:58)


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#8 2011-07-24 14:04:34

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Jumping with the Sprite

I think I fixed it. I'll upload it now.

Offline

 

#9 2011-07-24 14:06:29

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

laptop97 wrote:

I think I fixed it. I'll upload it now.

Bless you!! Thanks!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#10 2011-07-24 14:09:51

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

Thanks laptop97. I can finally do my game now thanks to you. But just for future reference, do you know how to make it jump like smoothly in stead of going there and then coming back?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#11 2011-07-24 14:15:33

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Jumping with the Sprite

Yes, I can add that too. Should I?

Offline

 

#12 2011-07-24 14:16:45

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

Re: Jumping with the Sprite

Look at this: Game It helped me.

Offline

 

#13 2011-07-24 15:04:36

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

laptop97 wrote:

Yes, I can add that too. Should I?

Yes please.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#14 2011-07-24 15:08:44

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Jumping with the Sprite

Should it jump higher too?

Offline

 

#15 2011-07-24 15:09:00

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

laptop97 wrote:

Should it jump higher too?

okay


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#16 2011-07-24 23:17:21

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Jumping with the Sprite

I uploaded it, it's the same project name.

Offline

 

#17 2011-07-25 00:10:30

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

Thanks!!!!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#18 2011-07-25 00:15:13

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

laptop97 wrote:

I uploaded it, it's the same project name.

Credit goes to you automatically!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#19 2011-07-25 00:21:56

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

Err sorry for being so much trouble laptop97, but I was just wondering do you know how to make Evergreen fall if he is not touching platforms?


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#20 2011-07-25 16:52:53

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

Re: Jumping with the Sprite

Thescratch3 wrote:

Err sorry for being so much trouble laptop97, but I was just wondering do you know how to make Evergreen fall if he is not touching platforms?

If not touching color
(Ground color) change velocity by -1

Offline

 

#21 2011-07-25 18:21:28

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Jumping with the Sprite

Ok, I uploaded it, it's the same project. Also, you can look at this to learn how to platform and use sensing.

Offline

 

#22 2011-07-25 21:33:05

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Jumping with the Sprite

Okay. Thank you so much laptop97 you have been a very big help!!


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

Board footer