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

#1 2008-08-31 20:12:17

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

scrolling gravity?

How do you make scrolling gravity with the yspeed variable?

Offline

 

#2 2008-09-01 10:36:29

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: scrolling gravity?

Please help.

Offline

 

#3 2008-09-01 11:43:07

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: scrolling gravity?

gravity is a force and that means it create acceleration.  to do acceleration inscratch have a variable called y.  if you are falling it changes by a negative amount such as -0.5.  use this variable in the same way you use the X variable for the scrolling.
goodluck


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

Board footer