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

#1 2012-12-19 11:03:20

fundo4
Scratcher
Registered: 2012-05-19
Posts: 8

scroller

i was wondering how to make a sprite walk up ramps


fundo4 waz ere  tongue

Offline

 

#2 2012-12-31 05:42:53

Roboguy99
Scratcher
Registered: 2012-06-15
Posts: 2

Re: scroller

This may be quite hard or mainly time-consuming. You will probably need several little sprites to make up the ramp which the main sprite bounces up and along when he touches them.

Offline

 

#3 2012-12-31 07:25:37

thescratchytim
Scratcher
Registered: 2010-09-10
Posts: 25

Re: scroller

fundo4 wrote:

i was wondering how to make a sprite walk up ramps

It can be done the simple way.
Make a map of any color you choose, and then use this

when gf clicked
forever
if <touching color [black]>
change y by [1]
else
change y by [-1]

It's a very simple way, and works quite well. If you need it to go faster, you can change the 1 to 5 or anything you want.


Hello! I'm thescratchytim!  Check out my projects here. Scratch on!
Status: http://blocks.scratchr.org/API.php?user=thescratchytim&amp;action=onlineStatus&amp;type=circle • Also, this project seems to be my most successful. I don't know why  tongue

Offline

 

#4 2012-12-31 08:08:58

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: scroller

thescratchytim wrote:

fundo4 wrote:

i was wondering how to make a sprite walk up ramps

It can be done the simple way.
Make a map of any color you choose, and then use this

when gf clicked
forever
if <touching color [#000000]?>
change y by (1)
else
change y by (-1)

It's a very simple way, and works quite well. If you need it to go faster, you can change the 1 to 5 or anything you want.

Fixed the script.

EDIT: Fixed an error.

Last edited by jontmy00 (2012-12-31 08:09:32)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#5 2013-01-01 03:44:14

fundo4
Scratcher
Registered: 2012-05-19
Posts: 8

Re: scroller

thanx guys ill try your segestions ☺


fundo4 waz ere  tongue

Offline

 

Board footer