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

#1 2010-11-25 13:11:07

Szakal
New Scratcher
Registered: 2010-11-15
Posts: 2

Need Help

how do i make sprite change between costumes so that the other one doesn't show? because whenevehttp://scratch.mit.edu/forums/post.php?fid=12#req_messager i change costumes the other one flashes behind the original one. these three i have under 3 different <when green flag clicked>.

Offline

 

#2 2010-11-25 15:28:05

ScratchGirl100
New Scratcher
Registered: 2010-08-17
Posts: 25

Re: Need Help

I'm a little confused. Could you perhaps explain a little more?


http://i55.tinypic.com/s4c9z9.gif

Offline

 

#3 2010-11-25 15:43:04

Szakal
New Scratcher
Registered: 2010-11-15
Posts: 2

Re: Need Help

ok, i have 1 sprite with 3 costumes. each of them are under 1 green flag, the code is, when green flag, always if key 1 is pressed and so on, then for the second costume, the same thing but key 2 pressed, so when i play it, and change costumes i can see the previous one flashing behind it.

Offline

 

#4 2010-11-25 17:42:07

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Need Help

If the sprite is quickly switching between costumes, it will tend to flash...why not use When Key Pressed hats instead?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#5 2010-11-25 22:02:37

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Need Help

Fullmoon's answer will probably work fine. Sometimes, your scripts will contradict each other, so it'll rapidly switch costumes back and forth, resulting in the flashing you see.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer