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

#1 2011-11-09 17:35:21

ThatCool3DGuy
New Scratcher
Registered: 2011-11-09
Posts: 1

Tutorial: Velocity of moving objects

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

 

#2 2011-11-09 19:52:20

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Tutorial: Velocity of moving objects

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've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2011-11-11 11:00:13

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Tutorial: Velocity of moving objects

henley wrote:

And don’t use the blocks from the forums. They mess everything up.
[...]

+1
Use nXIII's forum blocks, if anything.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4 2011-11-12 22:55:14

4alex2behappy
Scratcher
Registered: 2011-10-27
Posts: 2

Re: Tutorial: Velocity of moving objects

how do you make a forum?

Offline

 

#5 2011-11-13 02:48:54

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Tutorial: Velocity of moving objects

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!  smile


Why

Offline

 

#6 2011-12-24 21:08:47

Luxturna
Scratcher
Registered: 2011-04-24
Posts: 38

Re: Tutorial: Velocity of moving objects

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.


http://scratch.mit.edu/static/icons/buddy/782569_med.png?t=2012-03-10+00%3A38%3A57

Offline

 

#7 2011-12-30 09:49:47

SniperSpartan12
Scratcher
Registered: 2011-03-31
Posts: 1

Re: Tutorial: Velocity of moving objects

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  smile

Offline

 

Board footer