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

#1 2012-05-22 23:20:48

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Clearing in a localized area?

I am working on a day/night cycle for Creative Studio #42, yet to clear a block, there are two options. One for day and one for night. *Spoilers!* However, when you switch to night, the clear block (if you used it) from day shows up and vice versa. Is there ANY way to clear something in a localized area? My teacher says it's not impossible, but...well...


2012--The biggest troll ever.

Offline

 

#2 2012-05-22 23:42:22

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Clearing in a localized area?

You can stamp over the area with a sprite, rather than clearing it.  That's the best I've got.

EDIT: 400th post!

Last edited by amcerbu (2012-05-23 00:10:27)

Offline

 

#3 2012-05-22 23:45:20

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Clearing in a localized area?

What amcerbu said.

Or you could store data in lists, but that would be complicated.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#4 2012-05-22 23:58:24

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: Clearing in a localized area?

amcerbu wrote:

You can stamp over the area with a sprite, rather than clearing it.  That's the best I've got.

Which is exactly what I am doing!  sad  However, because of the two colour of the day/night cycle, it will show up at the opposite time!


2012--The biggest troll ever.

Offline

 

#5 2012-05-23 10:50:13

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Clearing in a localized area?

You could use a variable that controls the color of the sprite, like this,

when gf clicked
forever
if <(time) = [day]>
switch to costume [day v]
end
if <(time) = [night]>
switch to costume [night v]
end
That should help with the color problem!  smile

Last edited by sonicfan12p (2012-05-23 11:13:01)


Why are the secret organizations getting all the attention?  mad

Offline

 

#6 2012-05-24 02:53:28

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: Clearing in a localized area?

sonicfan12p wrote:

You could use a variable that controls the color of the sprite, like this,

when gf clicked
forever
if <(time) = [day]>
switch to costume [day v]
end
if <(time) = [night]>
switch to costume [night v]
end
That should help with the color problem!  smile

This would work if you were only clearing ONE block. Because you can't clone blocks (Yet...), I have to Stamp them. And as you know, you can't change a stamp. My teacher says it's possible to solve my problem, but until the glorious arrival of 2.0, it is not possible.

Last edited by Happypieman (2012-05-24 02:53:52)


2012--The biggest troll ever.

Offline

 

#7 2012-05-24 10:42:22

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Clearing in a localized area?

If you change the costume, it will change the stamp.

Offline

 

#8 2012-05-24 15:37:26

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: Clearing in a localized area?

amcerbu wrote:

If you change the costume, it will change the stamp.

No, it doesn't. It does when it's not stasmped yet, but when it is stamped, it doesn't. Remember, you can change the stamper, but not the stamp.

Stamp is such a strange word when you look at it closely.


2012--The biggest troll ever.

Offline

 

#9 2012-05-24 20:46:34

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Clearing in a localized area?

I still don't quite understand what you're asking.  Can you please upload a version so we can look at it?

Offline

 

#10 2012-05-25 04:51:11

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: Clearing in a localized area?

amcerbu wrote:

I still don't quite understand what you're asking.  Can you please upload a version so we can look at it?

I suppose.


2012--The biggest troll ever.

Offline

 

Board footer