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

#1 2010-09-04 13:31:30

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Appear as One Costume, But Actually Switching Back and Forth?

Ok, so I'm trying to make a 1s1s platformer (finally). I got my sensor costume and normal costume, but how do I make it so that the sprite looks like the normal costume, but is actually switching between the sensor and normal over and over? I know it can be done, 'cause I've seen it used in a project before.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#2 2010-09-04 13:50:14

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

Re: Appear as One Costume, But Actually Switching Back and Forth?

Ok, so what you need to do is have the sprite set it's ghost value to 100.  Then you need it to stamp the actual level every time (should follow a clear block).  Then you have it turn to your sensor, do it's thing, then turn to the costume and stamp.


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

Offline

 

#3 2010-09-04 13:52:10

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Appear as One Costume, But Actually Switching Back and Forth?

AtomicBawm3 wrote:

Ok, so what you need to do is have the sprite set it's ghost value to 100.  Then you need it to stamp the actual level every time (should follow a clear block).  Then you have it turn to your sensor, do it's thing, then turn to the costume and stamp.

Stamp the level multiple times? Why?

Last edited by Sunrise-Moon (2010-09-04 13:52:21)


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#4 2010-09-04 14:01:39

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

Re: Appear as One Costume, But Actually Switching Back and Forth?

I always use a hidden sensor that follows the player, and the color sensor still works!  smile


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

Offline

 

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

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Appear as One Costume, But Actually Switching Back and Forth?

Jwosty wrote:

I always use a hidden sensor that follows the player, and the color sensor still works!  smile

But I'm making a 1s1s, so I can't use an extra sprite  sad


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#6 2010-09-04 14:20:32

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

Re: Appear as One Costume, But Actually Switching Back and Forth?

Yes, the level needs to stamp every time it makes the cycle, you don't necassarily need the clear block, you do need the level to stamp every cycle. It should be something like this:

set ghost effect to (100)
Forever
  Clear ----(optional)
  Switch to costume ((level) + 2)
  stamp
  Go to x: (plyrx) y: (plyry)
  Switch to costume (sensor)
  (insert sensor scripts here)
  Switch to costume (plyr)
  Stamp
end Forever


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

Offline

 

Board footer