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

#1 2012-10-12 18:24:18

maxdoss
Scratcher
Registered: 2010-07-27
Posts: 1000+

Help with a scrolling project

Hi. im making a scrolling project where the character goes fast from left to right and i need to know a couple things.

1. How do I have slopes?
2. HOw do i change scrolling by x velocity
3. How do i make how high he jumps based on velocity?


It's my birthday. Deal with it.

Offline

 

#2 2012-10-12 18:47:01

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Help with a scrolling project

1. You will probably need sensors to detect if the ground is rising or not. So in the tutorial, you can add another line above the green one (about 2-4 pixels above it) and have an if statement that checks if that color is touching the ground, and if it is, change the Y by 1 or 2.

2 & 3: Basic Velocity and Gravity/Jumping.

Edit: An example of slopes I've got here.

Last edited by Magnie (2012-10-13 13:34:27)

Offline

 

Board footer