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

#1 2008-06-12 12:10:45

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Block don't work

Hi some of my blocks don't work like the [block]<if>[/block] and basically all the number blocks please help this information is extemly crucial to my game please help!

Last edited by joeisawesome (2008-06-12 16:05:10)


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#2 2008-06-12 15:34:49

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Block don't work

Can you be more specific? Are you talking about the blocks in Scratch or the forums and how are they not working right?

Offline

 

#3 2008-06-12 16:04:22

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

All the blocks are in scratch

the [block]<if>[/block] block is fine but whenever i put somthing in the hexagonal area ( like [block]<if>[/block]touching sprite 2 or [block]<if>[/block]  [block]<( 7 <>>2  )>[/block]) it dosent work.

The other thing is all the number blocks in scratch don't work either( especially the greater, less than and equal blocks).

help!

Last edited by joeisawesome (2008-06-12 16:06:51)


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#4 2008-06-12 16:58:47

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Block don't work

How do they not work right? Did you put something in the If block?

What version of Scratch do you have? It may be a glitch with the program and your computer. If you have an older version you should try downloading the newest version and see if it works.

Offline

 

#5 2008-06-12 17:14:21

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

Without anything in the if block it's fine but whenn i put something in it that when it dosen't work
I have Scratch 1.2.1 (6-Dec-07)


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#6 2008-06-12 18:03:17

bobbysq
Scratcher
Registered: 2007-06-26
Posts: 100+

Re: Block don't work

use <forever if>

Last edited by bobbysq (2008-06-12 18:03:45)


originals forever!

Offline

 

#7 2008-06-12 20:48:41

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Block don't work

Could you share your project online so we could take a look at it and try to figure out what is not working?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#8 2008-06-12 21:02:48

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Block don't work

I think I know why. Are you using a variable for each number, or one of them? If it is a set number, like 7>2, it will always be true, so you should just put it into a forever block.


All your base are belong to us

Offline

 

#9 2008-06-13 10:16:45

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

i tried forever if block but it dosn't work

Paddle2see, i have not yet put in an if block but i will be happy to share a quick demo
Pokemon scratch verzion demo


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#10 2008-06-13 10:50:01

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: Block don't work

Have you tried

<forever>
     <if>
     <end>
<end>


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

#11 2008-06-13 11:08:44

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

...no...


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#12 2008-06-13 13:14:41

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Block don't work

Okay, I pulled down your demo.  Now, which sprite has the block you can't get to work?  And what are you trying to get it to do?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#13 2008-06-13 15:42:16

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Block don't work

Have you tried using:
When flag pressed
       Forever If
And then inside it, your block.


Having a forever has it so it will always keep on doing it.

Offline

 

#14 2008-06-13 16:54:01

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

Paddle2See wrote:

Okay, I pulled down your demo.  Now, which sprite has the block you can't get to work?  And what are you trying to get it to do?

Nothing is wrong with the demo i just wanted to share it! ( you like it?)


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#15 2008-06-24 06:55:25

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

Some one hhhhhhhhhhhhheeeeeeeeeeeeeeeeeeelllllllllllllllllllllllllllllllllpppppppppppppppp me with my problem!


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#16 2008-06-24 10:40:31

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Block don't work

joeisawesome wrote:

Some one hhhhhhhhhhhhheeeeeeeeeeeeeeeeeeelllllllllllllllllllllllllllllllllpppppppppppppppp me with my problem!

Well, you've got me confused!  I asked you to post the project with your problem.  You posted a project, I pulled it down and then you told me there was nothing wrong with it, you just wanted to share it (see post a couple above this one).  So I assumed that you had solved your problem. 

Now you say you still have a problem!  So....again I ask you, what is the problem?  You need to be very specific, please.  The best way to solve it is to share the project with the problem to the web with a detailed description of what you are trying to do and what seems to be wrong.  Okay?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#17 2008-06-24 16:40:49

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

Paddle2See wrote:

joeisawesome wrote:

Some one hhhhhhhhhhhhheeeeeeeeeeeeeeeeeeelllllllllllllllllllllllllllllllllpppppppppppppppp me with my problem!

Well, you've got me confused!  I asked you to post the project with your problem.  You posted a project, I pulled it down and then you told me there was nothing wrong with it, you just wanted to share it (see post a couple above this one).  So I assumed that you had solved your problem. 

Now you say you still have a problem!  So....again I ask you, what is the problem?  You need to be very specific, please.  The best way to solve it is to share the project with the problem to the web with a detailed description of what you are trying to do and what seems to be wrong.  Okay?

I said nothing is wrong with the project because i didn't use any number blocks or the if block

I still have the problem...


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#18 2008-06-24 17:08:46

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Block don't work

Okay.  You are having trouble with the IF block and numbers.  Please tell me what you are trying to do in your project.  What do you want the IF block to do?  What numbers are you working with?  Is it a Score?  Number of times a player jumps?  Please try to describe what you are trying to do, not the problem you are having.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#19 2008-06-26 07:37:42

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

Wait, i got it! the if block works perfectly it's just these 3 blocks that make it not work because i put them in the if block.

<(  <<>  )>  the less than block

<(  <=>  )>  the equal bllock

<(  <>>  )>  the greater block

Last edited by joeisawesome (2008-06-26 07:38:34)


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#20 2008-06-26 08:38:38

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

Re: Block don't work

Can you please say *what* does not work?

Your game just doesn't work?

You get a squeak error?


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

Offline

 

#21 2008-06-26 15:24:12

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Block don't work

Try this and see what the effect is:

<when green flag clicked>
<forever>
<if>  <(  3<<> 6 )>
<say[ Hello
<else>
<say[ Bye
<end>
<end>

Offline

 

#22 2008-06-26 16:10:34

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Block don't work

Zelda123 wrote:

Try this and see what the effect is:

<when green flag clicked>
<forever>
<if>  <(  3<<> 6 )>
<say[ Hello
<else>
<say[ Bye
<end>
<end>

THAT works but i'm talking about when i put something like this in it:


<when green flag clicked>
<forever>
<if>  <( costume # of Sprite 1 <=> 4 )>
<say[ yo ]for( 5 )secs>
<else>
<think[ wassup? ]for( 3 )secs>
<end><end>


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#23 2008-06-26 16:17:09

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Block don't work

joeisawesome wrote:

Zelda123 wrote:

Try this and see what the effect is:

<when green flag clicked>
<forever>
<if>  <(  3<<> 6 )>
<say[ Hello
<else>
<say[ Bye
<end>
<end>

THAT works but i'm talking about when i put something like this in it:


<when green flag clicked>
<forever>
<if>  <( costume # of Sprite 1 <=> 4 )>
<say[ yo ]for( 5 )secs>
<else>
<think[ wassup? ]for( 3 )secs>
<end><end>

How doesn't it work right? Does the sprite1 have 4 different costumes? What costume number was the sprite on and what did it say/think?

Offline

 

Board footer