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

#1 2008-03-11 08:55:19

spy2712
Scratcher
Registered: 2008-03-11
Posts: 8

Flickering screen

Hi,
I uploaded my first project today.  On my PC in Scratch, it works perfectly, but once uploaded the first screen flickers.  It should go to ghost effect 100 when space bar is clicked, instead it just flashes on and off all the time.  Please help!

It's space Adventure, by spy2712


I'm a Demigod, what are you!

Offline

 

#2 2008-03-11 09:01:25

Calimero_200
Scratcher
Registered: 2008-02-28
Posts: 74

Re: Flickering screen

Maybe you should include a link?

Offline

 

#3 2008-03-11 09:09:22

spy2712
Scratcher
Registered: 2008-03-11
Posts: 8

Re: Flickering screen

How do I add a link to a project?


I'm a Demigod, what are you!

Offline

 

#4 2008-03-11 09:28:01

Calimero_200
Scratcher
Registered: 2008-02-28
Posts: 74

Re: Flickering screen

You need the address of the project (from the address bar). And then put it in your post with "" just before it and "" at the end of it.

EDIT: Oops! Click on the "[img] tag" link to read a better explanation or go to "Scratch Forums Help".

Last edited by Calimero_200 (2008-03-11 09:31:44)

Offline

 

#5 2008-03-11 09:32:26

Calimero_200
Scratcher
Registered: 2008-02-28
Posts: 74

Re: Flickering screen

Have you put the programming for the menu like this?

[blocks]<when[ space ]key pressed>
<forever>
<hide>
[/blocks]

With the forever?

Last edited by Calimero_200 (2008-03-11 10:04:51)

Offline

 

#6 2008-03-11 10:59:09

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Flickering screen

Calimero_200, your solution will nock down everything. you don't need the forever.

I have watched the code, and I know what's the problem.

Change
[blocks]
<when[ space ]key pressed>
<forever>
<change[ ghost ]effect by( 100
<end>
[/blocks]
by
[blocks]

[blocks]
<when[ space ]key pressed>
<hide>
[/blocks]

If you want to kow why, just ask.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#7 2008-03-11 11:22:31

spy2712
Scratcher
Registered: 2008-03-11
Posts: 8

Re: Flickering screen

Thanks so much to both of you - I did it and it works. Although... it's too slow to work properly online - is that normal?  When I download it it works as I wanted it to.


I'm a Demigod, what are you!

Offline

 

#8 2008-03-11 11:30:23

Calimero_200
Scratcher
Registered: 2008-02-28
Posts: 74

Re: Flickering screen

That could be becuase of your net connection and JSO was right (I think...). I was referring to the instructions being a seperate sprite - not as part of the background if that's what it is, It would knock down everything though.

Last edited by Calimero_200 (2008-03-11 11:31:29)

Offline

 

#9 2008-03-11 14:26:15

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Flickering screen

When you use calimero's code, it will only work offline (like i sead, but you can only see it between the lines  big_smile ) .

The hide block will use CPU power. You have to use it once. If my mom asks me to stop scratching once (if I listen), i will stop. But with forever.... My mom would repeat it - forever!

It's the same with scratch, if it repeats hide (hidehidehidehidehidehide and so on  wink  ) your computer will slow down.

Remove the forever, and everything will work fine.

big_smile

Joren

Last edited by JSO (2008-03-11 14:26:57)


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

Board footer