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!
Offline
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)
Offline
Okay laptop97 I uploaded it go to Scratch3testaccount look at the FIRST project not the second!
Offline
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!
Offline
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)
Offline
laptop97 wrote:
I think I fixed it. I'll upload it now.
Bless you!! Thanks!
Offline
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?
Offline
Offline
laptop97 wrote:
Yes, I can add that too. Should I?
Yes please.
Offline
laptop97 wrote:
Should it jump higher too?
okay
Offline
laptop97 wrote:
I uploaded it, it's the same project name.
Credit goes to you automatically!
Offline
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?
Offline
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
Okay. Thank you so much laptop97 you have been a very big help!!
Offline