This tutorial will show you how to add velocity to moving objects. First make a VELOCITY VARIABLE
<{ VELOCITY }>
1. When you want the object to move, in this case we will do forward, set a control for moving forward (up arrow). Build script: If Up Arrow pressed change VELOCITY by (whatever # you decide)
2. Next build script so that when the up arrow is released the object is still moving, but is slowing down.
Script: (If up arrow key is not pressed) and if velocity is VELOCITY >0, change VELOCITY by (depending on how fast you want the object to slow down)
3. Create Script: Move (VELOCITY/10) Steps
This can be applied even if you want the object to move in reverse, just change the control and repeat the process.
If you have any questions or concerns please message me
Offline
You could just post a picture of the script.
And don’t use the blocks from the forums. They mess everything up.
Or this if you need better explaining:
Offline
henley wrote:
And don’t use the blocks from the forums. They mess everything up.
[...]
+1
Use nXIII's forum blocks, if anything.
Offline
how do you make a forum?
Offline
4alex2behappy wrote:
how do you make a forum?
If you mean a topic/thread, then in the top right corner of the page there'll be a link saying 'post new ropic'. A forum is the place you post the topic in, like All About Scratch and New Scratch Members!
Offline
henley wrote:
You could just post a picture of the script.
And don’t use the blocks from the forums. They mess everything up.
http://i42.tinypic.com/1zwlqqg.gif
Or this if you need better explaining:
http://i44.tinypic.com/qsuzyr.jpg
I used similar scripts for my game:
http://scratch.mit.edu/projects/Luxturna/2239467
Well, at least the jumping part is really close.
Offline
henley wrote:
You could just post a picture of the script.
And don’t use the blocks from the forums. They mess everything up.
http://i42.tinypic.com/1zwlqqg.gif
Or this if you need better explaining:
http://i44.tinypic.com/qsuzyr.jpg
um, i think you should explain, and elaborate a little more; its hard to understand how complete the script
Offline