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

#1 2012-09-02 19:48:19

rocketthecat5
Scratcher
Registered: 2010-05-27
Posts: 7

How?

I am making a scroller,and I am wandering how do I make the character sprite be a specific costume when idle. Any help?

Offline

 

#2 2012-09-02 22:04:19

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

Re: How?

The easiest way would be to make all your animations a broadcast and have it default to the default state every loop.  Alternatively, you could end every animation with "switch to costume [default v]

when gf clicked
forever
if<key [right arrow v] pressed?>
broadcast [walk right v] and wait
end
if<key [left arrow v] pressed?>
broadcast [walk left v] and wait
end
etc.
switch to costume [default v] // e.g. "standing" costume

Last edited by MoreGamesNow (2012-09-02 22:04:28)


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

Offline

 

#3 2012-09-02 22:48:44

sccar3
Scratcher
Registered: 2008-09-04
Posts: 100+

Re: How?

when gf clicked
forever
if <<key [left arrow v] pressed?> or <key [right arrow v] pressed?>>
movement scripts
else
idle animation
end

Last edited by sccar3 (2012-09-02 22:49:44)


http://1.bp.blogspot.com/-WInb2DZ2LBM/UQaLETx3VII/AAAAAAAAAmQ/ZOpSwEPggiE/s1600/The%2BElder%2BScrolls%2BOnline%2BSignup%2BBeta.jpg

Offline

 

#4 2012-09-09 18:48:20

TheSolsticeDragon
New Scratcher
Registered: 2012-09-09
Posts: 1

Re: How?

Thanks

Offline

 

#5 2012-09-09 19:02:34

rocketthecat5
Scratcher
Registered: 2010-05-27
Posts: 7

Re: How?

How do you do the red ones? I know they aren't variables?

Offline

 

#6 2012-09-09 19:21:30

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: How?

rocketthecat5 wrote:

How do you do the red ones? I know they aren't variables?

They simply mean to fill in the red spots with the scripts you want for it, for example, the "block"

movement scripts
would mean, whatever scripts you want for its movement.  wink


http://i48.tinypic.com/2072ctw.gif

Offline

 

Board footer