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

#1 2011-02-17 23:22:19

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

physics

easy gravity
you can use this formula for a game
example

sprite 1("ground")
this fellow is usually a long rectangle or set of obstacles.
[blocks]<go to x sad  0 )y sad  -220 [/blocks]
sprite 2("sprite")
this fellow's look's can differ
http://wiki.scratch.mit.edu/images/Velocity_Gravity.gif

moving smoothly
you can use this formula game characters
example

sprite 1("sprite")
this fellow will move smoothly when the right and left arrows are clicked 
http://wiki.scratch.mit.edu/images/Velocity_script.png

easy orbit
you can use this in a single planet with no moons solar system simulation
example

sprite 1("sun")
this fellow usually a yellow sphere
[block]<go to x sad  0 )y sad  0 [/block]

sprite 2("planet")
this can be a circle of any color
http://scratch.mit.edu/static/icons/buddy/729914_med.png?t=2011-02-20+12%3A55%3A08

harder orbit
you can use this formula in a solar system simulation

sprite 1("sun")
this fellow usually a yellow sphere
[blocks]<go to x sad  0 )y sad  0 [/blocks]

sprite 2("planet")
this can be a circle of any color
http://wiki.scratch.mit.edu/images/EGrav1.gif

waves
you can use this formula in a game,animation, or wave simulation
example

sprite 1("sprite")
this fellow can be any shape
http://scratch.mit.edu/static/icons/buddy/729918_med.png?t=2011-02-20+12%3A59%3A49

pendulums
you can use this for a game or a pendulum simulation
example

sprite 1("pendulum")
this fellow is usually a stick with a ball on the bottom
http://scratch.mit.edu/static/icons/buddy/741350_med.png?t=2011-03-04+19%3A26%3A05

hope this helped!

Last edited by TVflea (2011-03-04 19:32:42)


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#2 2011-02-17 23:24:13

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: physics

Nice scripts  smile  Have you ever considered writing tutorials on the Scratch Wiki?


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2011-02-17 23:27:06

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: physics

Good scripts, but the gravity ones can (and should) all go under the same forever- too many forever's slow down your game.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#4 2011-02-18 21:42:41

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

Jonathanpb wrote:

Nice scripts  smile  Have you ever considered writing tutorials on the Scratch Wiki?

no,what a great idea


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#5 2011-02-18 21:45:50

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

Sunrise-Moon wrote:

Good scripts, but the gravity ones can (and should) all go under the same forever- too many forever's slow down your game.

i don't understand


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#6 2011-02-19 01:35:27

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: physics

TVflea wrote:

Sunrise-Moon wrote:

Good scripts, but the gravity ones can (and should) all go under the same forever- too many forever's slow down your game.

i don't understand

The gravity scripts should all go under the same forever block - too many forevers slow down your game.


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#7 2011-02-19 01:36:38

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: physics

floppy_gunk wrote:

TVflea wrote:

Sunrise-Moon wrote:

Good scripts, but the gravity ones can (and should) all go under the same forever- too many forever's slow down your game.

i don't understand

The gravity scripts should all go under the same forever block - too many forevers slow down your game.

True. That's why when advanced Scratchers make complicated games, they uses broadcasts, not forevers... or at least limiting the forever.

Offline

 

#8 2011-02-19 09:59:03

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

kayybe wrote:

True. That's why when advanced Scratchers make complicated games, they uses broadcasts, not forevers... or at least limiting the forever.

that's true,but it's not advanced gravity.

easy gravity
you can use this formula for a game

sprite 1("ground")
this fellow is usually a long rectangle or set of obstacles.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#9 2011-02-19 10:34:27

TheSaint
Scratcher
Registered: 2008-11-04
Posts: 1000+

Re: physics

Nice guide.  smile

Offline

 

#10 2011-02-19 10:35:58

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: physics

TVflea wrote:

kayybe wrote:

True. That's why when advanced Scratchers make complicated games, they uses broadcasts, not forevers... or at least limiting the forever.

that's true,but it's not advanced gravity.

easy gravity
you can use this formula for a game

sprite 1("ground")
this fellow is usually a long rectangle or set of obstacles.

Hahahaha, you got that right.

Offline

 

#11 2011-02-20 13:36:23

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

TheGameMaster1231 wrote:

TVflea wrote:

kayybe wrote:

True. That's why when advanced Scratchers make complicated games, they uses broadcasts, not forevers... or at least limiting the forever.

that's true,but it's not advanced gravity.

easy gravity
you can use this formula for a game

sprite 1("ground")
this fellow is usually a long rectangle or set of obstacles.

Hahahaha, you got that right.

yep.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#12 2011-02-20 13:48:51

scriptY
Scratcher
Registered: 2011-02-20
Posts: 45

Re: physics

great idea.thanks for putting my project in your example!


ham and cheese

Offline

 

#13 2011-02-20 15:23:45

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

scriptY wrote:

great idea.thanks for putting my project in your example!

it was the only one with that script.it was also pretty good.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#14 2011-02-20 16:39:54

tvflame
Scratcher
Registered: 2010-10-15
Posts: 19

Re: physics

wow!that's helpful!


http://images.cooltext.com/2054899.gif
" I'm a TV on fire!!!!!  tongue "

Offline

 

#15 2011-02-20 16:41:57

bixby_the_panda
Scratcher
Registered: 2010-12-04
Posts: 6

Re: physics

tvflame wrote:

wow!that's helpful!

it took him along time to make that.i'm his sister

Offline

 

#16 2011-02-20 18:04:25

puplicicon
New Scratcher
Registered: 2011-02-20
Posts: 6

Re: physics

ooooooo,physics

Offline

 

#17 2011-02-20 20:28:33

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

bixby_the_panda wrote:

tvflame wrote:

wow!that's helpful!

it took him along time to make that.i'm his sister

that's right


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#18 2011-02-26 09:34:34

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

tvflame wrote:

wow!that's helpful!

i made it for new scratchers.like you!


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#19 2011-02-27 16:27:46

tvflame
Scratcher
Registered: 2010-10-15
Posts: 19

Re: physics

TVflea wrote:

tvflame wrote:

wow!that's helpful!

i made it for new scratchers.like you!

thanks!


http://images.cooltext.com/2054899.gif
" I'm a TV on fire!!!!!  tongue "

Offline

 

#20 2011-02-27 16:49:04

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: physics

it's just an example  tongue

also, stop asking questions and not taking answers then.

Last edited by kayybee (2011-02-27 16:49:37)

Offline

 

#21 2011-02-27 20:02:48

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

kayybee wrote:

it's just an example  tongue

also, stop asking questions and not taking answers then.

i do not under stand.i never asked a question.

Last edited by TVflea (2011-02-27 20:12:02)


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#22 2011-02-27 20:18:33

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: physics

but asking "i don't understand" is just implying that you want an answer, and all statements that have an answer to it are questions, so that changes to a question of "can you explain that because i don't understand"

Offline

 

#23 2011-02-27 20:21:14

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

kayybee wrote:

but asking "i don't understand" is just implying that you want an answer, and all statements that have an answer to it are questions, so that changes to a question of "can you explain that because i don't understand"

i have no idea what your talking about.i never asked a question.this topic is to inform new scratchers how to use physics on scratch.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#24 2011-02-27 20:25:30

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: physics

TVflea wrote:

kayybee wrote:

but asking "i don't understand" is just implying that you want an answer, and all statements that have an answer to it are questions, so that changes to a question of "can you explain that because i don't understand"

i have no idea what your talking about.i never asked a question.this topic is to inform new scratchers how to use physics on scratch.

maybe itd help if you lok up and now i can tak liek this

Offline

 

#25 2011-02-27 20:27:43

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: physics

i understand you but it's EASY GRAVITY!!!!!!!not advanced.

Last edited by TVflea (2011-02-27 20:30:42)


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

Board footer