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

#1 2010-09-02 17:44:40

robbynor
New Scratcher
Registered: 2010-08-31
Posts: 1

I Need Help/ Plz Plz Plz Pppppllllllzzzzzzzzzzzzzzzzzzzzzz

Can someone tell me how to make scratch jum on top of a color and stay on top

Offline

 

#2 2010-09-02 18:55:02

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: I Need Help/ Plz Plz Plz Pppppllllllzzzzzzzzzzzzzzzzzzzzzz

Code:

go to [sprite]
go to front

I think that's what you're getting at.


IHeartGaming

Offline

 

#3 2010-09-02 19:38:35

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: I Need Help/ Plz Plz Plz Pppppllllllzzzzzzzzzzzzzzzzzzzzzz

IHeartGaming wrote:

Code:

go to [sprite]
go to front

I think that's what you're getting at.

No, I think he's talking about making a platformer.

Try this:

  If (not (touching color (color of your choice)))
    Change y by (-1)
  end if
  If (touching color (color of your choice))
    Change y by (1)
     If  space key pressed
         change y by (10)
     end If
  end if

This is the simplest way to do it.  You can start playing around with it by adding variables and changing values.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#4 2010-09-03 00:52:25

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: I Need Help/ Plz Plz Plz Pppppllllllzzzzzzzzzzzzzzzzzzzzzz

There are a lot of ways to do it. Post your project and make a link to it here and we can make the best suggestions, otherwise we are kind of guessing.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#5 2010-09-03 09:19:14

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: I Need Help/ Plz Plz Plz Pppppllllllzzzzzzzzzzzzzzzzzzzzzz

You can use the gravity engine from my game, Clash 2smile


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

Board footer