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

#1 2012-06-07 18:24:31

mgrbarton
New Scratcher
Registered: 2012-05-11
Posts: 10

I need help (S.O.S.)

This is a lengthy story, so bear with me.

I am making a RPG. In the game, their is a flight of stairs (a sprite) which represents going upstairs. There are two costumes: One just regular stairs, the other (costume 2) says " press space to go upstairs".

The problem is, I want this: if the main sprite comes a certain distance to the stairs, it should change to costume 2.

   Help!

Offline

 

#2 2012-06-07 18:48:52

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: I need help (S.O.S.)

In staircase sprite:

when gf clicked
forever
if<(distance to [main sprite v]) < (certain distance)>
switch to costume [costume 2 v]
else
switch to costume [costume 1 v]
end


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer