Okay I am making a game, sorta like Scratch Defenders but different. Okay, when I download another person's project, to see their scripts, I find many many people do x velocity and y velocity in moving left and right and up and down. I need help with that. The mathematical functions look so confusing and I have no idea what they do. So can somebody explain to me how to use the y velocity variable in Scratch for moving up without using those extra special mathematical functions? If so, I will be very grateful and give at least a love it on one project.
Offline
Velocity is actually pretty simple, in concept. All you need is a velocity variable for each axis, which is increased or decreased based on key presses. Then you just change the x/y position by the corresponding velocity variable. A simple x velocity script might look like this:
When green flag clicked Forever If <key right arrow pressed> Change x velocity by 2 If <key left arrow pressed> Change x velocity by -2 Change x by x velocity
You can add a lot to it, like adding friction that makes you slowly slow down, changing how quickly the velocity changes, and adding a limit to how fast you can go, but that's a basic velocity script. I hope that helps you understand!
Offline
Well thanks, I figured the problem out. I am just figuring out the rest of the game what to do in it. Can you go to a BIG PROJECT forum? I could use an expert scratcher like you.
Offline
Im am making a game and i want my counter to just shop moving when it hits the red part
i have
<when green flag clicked>
<forever if><touching color[blue
<move( -15 )steps>
but i dont want it to move backwards i just want it to not be able to go past that point.
Please help.
Offline
Umm, this is about helping me but I guess I could help you? Okay you see on the top where there is a blue line and you can move it so it changes direction? Well there is an x position and y position. Check the x position. Then take out your script saying
When Flag clicked forever if touching blue then move -15 steps, no that will just make it move backwards! Take that script out. Then get a
When Flag clicked
forever
if sensing x position of Sprite number operators = the x position
then set x to x position of Sprite number and y position of sprite number.
Next time post your need for help in a different topic .
Offline
Harakou wrote:
"BIG PROJECT" forum? What do you mean? Oh, and "Expert Scratcher"? boy, I'm flattered :P
Oh, I mean is go to Collaboration (way bottom) and there should be a topic titled, 'Big Project'. I need some Scratchers who are very experienced with Scratch and can help out. I would like to have some help with
scrollx
designing
scripting for new places
and much more. So please go there.
Oh and for the experienced Scratchers? You are one! I am a newbie scratcher and probably have 0 skill at this programming software. I need your help and much others, can you tell your friends if they have been around Scratch for QUITE some time, and ask them to go to forums --> way bottom of page --> Collaboration --> Big Project. If you do I will be very grateful!
Offline
Thescratch3 wrote:
Harakou wrote:
"BIG PROJECT" forum? What do you mean? Oh, and "Expert Scratcher"? boy, I'm flattered :P
Oh, I mean is go to Collaboration (way bottom) and there should be a topic titled, 'Big Project'. I need some Scratchers who are very experienced with Scratch and can help out. I would like to have some help with
scrollx
designing
scripting for new places
and much more. So please go there.
Oh and for the experienced Scratchers? You are one! I am a newbie scratcher and probably have 0 skill at this programming software. I need your help and much others, can you tell your friends if they have been around Scratch for QUITE some time, and ask them to go to forums --> way bottom of page --> Collaboration --> Big Project. If you do I will be very grateful!
Oh, I see. I'll gladly help out in couple days once I get more time. (Long story)
Last edited by Harakou (2011-07-06 11:32:54)
Offline
Harakou wrote:
Thescratch3 wrote:
Harakou wrote:
"BIG PROJECT" forum? What do you mean? Oh, and "Expert Scratcher"? boy, I'm flattered :P
Oh, I mean is go to Collaboration (way bottom) and there should be a topic titled, 'Big Project'. I need some Scratchers who are very experienced with Scratch and can help out. I would like to have some help with
scrollx
designing
scripting for new places
and much more. So please go there.
Oh and for the experienced Scratchers? You are one! I am a newbie scratcher and probably have 0 skill at this programming software. I need your help and much others, can you tell your friends if they have been around Scratch for QUITE some time, and ask them to go to forums --> way bottom of page --> Collaboration --> Big Project. If you do I will be very grateful!Oh, I see. I'll gladly help out in couple days once I get more time. (Long story)
![]()
XD a couple days?
Offline
Thescratch3 wrote:
Harakou wrote:
Thescratch3 wrote:
Oh, I mean is go to Collaboration (way bottom) and there should be a topic titled, 'Big Project'. I need some Scratchers who are very experienced with Scratch and can help out. I would like to have some help with
scrollx
designing
scripting for new places
and much more. So please go there.
Oh and for the experienced Scratchers? You are one! I am a newbie scratcher and probably have 0 skill at this programming software. I need your help and much others, can you tell your friends if they have been around Scratch for QUITE some time, and ask them to go to forums --> way bottom of page --> Collaboration --> Big Project. If you do I will be very grateful!Oh, I see. I'll gladly help out in couple days once I get more time. (Long story)
![]()
XD a couple days?
Oops. XD Sorry. I guess this died after you didn't respond. Is the thread you're talking about still up, or have you solved your problems?
Offline
Harakou wrote:
Thescratch3 wrote:
Harakou wrote:
Oh, I see. I'll gladly help out in couple days once I get more time. (Long story)![]()
XD a couple days?
Oops. XD Sorry. I guess this died after you didn't respond. Is the thread you're talking about still up, or have you solved your problems?
Oh no it was sort of like a joke. I was browsing through my old topics, I can maybe fix this problem, I am still not this professional, but I have improved greatly. To see check these two projects and look at the differences:
Good one: http://scratch.mit.edu/projects/Thescratch3/1997263
Old one: http://scratch.mit.edu/projects/Thescratch3/1873764
Offline
Thescratch3 wrote:
Harakou wrote:
Thescratch3 wrote:
XD a couple days?Oops. XD Sorry. I guess this died after you didn't respond. Is the thread you're talking about still up, or have you solved your problems?
Oh no it was sort of like a joke. I was browsing through my old topics, I can maybe fix this problem, I am still not this professional, but I have improved greatly. To see check these two projects and look at the differences:
Good one: http://scratch.mit.edu/projects/Thescratch3/1997263
Old one: http://scratch.mit.edu/projects/Thescratch3/1873764
Wow, great improvement!
Offline
Harakou wrote:
Thescratch3 wrote:
Harakou wrote:
Oops. XD Sorry. I guess this died after you didn't respond. Is the thread you're talking about still up, or have you solved your problems?Oh no it was sort of like a joke. I was browsing through my old topics, I can maybe fix this problem, I am still not this professional, but I have improved greatly. To see check these two projects and look at the differences:
Good one: http://scratch.mit.edu/projects/Thescratch3/1997263
Old one: http://scratch.mit.edu/projects/Thescratch3/1873764Wow, great improvement!
Thanks.
Offline