From Test-Scratch-Wiki

m
m (translate some, will do the other ones)
Line 1: Line 1:
 
{{:Eng:C Block/translate}}[[File:The shape of one of the C blocks.png|frame|'''C blokları''nın genel şekli'.]]
 
{{:Eng:C Block/translate}}[[File:The shape of one of the C blocks.png|frame|'''C blokları''nın genel şekli'.]]
Bir '''C bloğu''' "C" harfine benzeyen bir [[Tur:Bloklar|blok]]tur, böylece diğer bloklar içine girebilir. These blocks perform the [[Eng:Boolean Block|conditions]] and loops.
+
Bir '''C bloğu''' "C" harfine benzeyen bir [[Tur:Bloklar|blok]]tur, böylece diğer bloklar içine girebilir. Bu bloklar [[Eng:Boolean Block|koşulları]] ve döngüleri gerçekleştirirler.
  
==Shape==
+
==Şekil==
 
C blocks have a "mouth" (it looks like the letter "C", hence the name) {{-}} the blocks that will be played with the C block go in these mouths. All but one of the C blocks consist of one mouth {{-}} the other, [[Eng:If () Then, Else (block)|If () Then, Else]], consists of two mouths. When any of the other C blocks are dragged over a stack of blocks {{-}} if the C is empty {{-}} its mouth extends to ''wrap'' around them.
 
C blocks have a "mouth" (it looks like the letter "C", hence the name) {{-}} the blocks that will be played with the C block go in these mouths. All but one of the C blocks consist of one mouth {{-}} the other, [[Eng:If () Then, Else (block)|If () Then, Else]], consists of two mouths. When any of the other C blocks are dragged over a stack of blocks {{-}} if the C is empty {{-}} its mouth extends to ''wrap'' around them.
  
Line 11: Line 11:
 
x: (0) y: (0) konumuna git :: motion
 
x: (0) y: (0) konumuna git :: motion
 
end
 
end
(Meow v) sesini bitene kadar çal
+
(Miyav v) sesini bitene kadar çal
 
end</scratchblocks>
 
end</scratchblocks>
  
 
In 1.2.1 and earlier, C-block scripts could only be built one block at a time.
 
In 1.2.1 and earlier, C-block scripts could only be built one block at a time.
  
==Blocks==
+
==Bloklar==
In [[Eng:Scratch 2.0|Scratch 2.0]], there are five C blocks, and they can all be found in the [[Eng:Control Blocks|Control]] category.
+
[[Tur:Scratch 2.0|Scratch 2.0]]'da beş tane C bloğu bulunur ve hepsi [[Tur:Control Blokları|Kontrol]] kategorisinde bulunabilirler.
  
 
*[[Eng:Forever (block)|Forever]]
 
*[[Eng:Forever (block)|Forever]]
Line 32: Line 32:
 
</scratchblocks>
 
</scratchblocks>
  
==Uses==
+
==Kullanımları==
 
As C blocks are for checks and loops, they are used almost everywhere. Some uses include:
 
As C blocks are for checks and loops, they are used almost everywhere. Some uses include:
 
*Things that must go on forever
 
*Things that must go on forever
Line 67: Line 67:
 
</scratchblocks>
 
</scratchblocks>
  
*Starting/Stopping
+
*Başlatma/Durdurma
 
<scratchblocks>
 
<scratchblocks>
 
when gf clicked
 
when gf clicked
Line 76: Line 76:
 
</scratchblocks>
 
</scratchblocks>
 
There is a check (the [[Eng:If () Then (block)|If () Then]] block is checking if the [[Eng:variable|variable]] ''Health'' has a value of 0), and inside the check is a repeat loop (with the [[Eng:Repeat () (block)|Repeat ()]] block). Note how C blocks can be placed inside other C blocks.
 
There is a check (the [[Eng:If () Then (block)|If () Then]] block is checking if the [[Eng:variable|variable]] ''Health'' has a value of 0), and inside the check is a repeat loop (with the [[Eng:Repeat () (block)|Repeat ()]] block). Note how C blocks can be placed inside other C blocks.
{{Block Shapes}}
+
{{Tur:Blok Şekilleri}}
[[Category:Block Shapes]]
+
[[Category:Tur/Blok Şekilleri]]
 
[[de:Blockform = Klammer-Blöcke]]
 
[[de:Blockform = Klammer-Blöcke]]

Revision as of 20:43, 21 March 2021

'C bloklarının genel şekli'.

Bir C bloğu "C" harfine benzeyen bir bloktur, böylece diğer bloklar içine girebilir. Bu bloklar koşulları ve döngüleri gerçekleştirirler.

Şekil

C blocks have a "mouth" (it looks like the letter "C", hence the name) — the blocks that will be played with the C block go in these mouths. All but one of the C blocks consist of one mouth — the other, If () Then, Else, consists of two mouths. When any of the other C blocks are dragged over a stack of blocks — if the C is empty — its mouth extends to wrap around them.

(10) defa tekrarla
<(ses yüksekliği :: sensing) > [30]> olana kadar tekrarla
(1) sn.de x: (10) y: (0)'a git :: motion
(1) saniye bekle
x: (0) y: (0) konumuna git :: motion
end
(Miyav v) sesini bitene kadar çal
end

In 1.2.1 and earlier, C-block scripts could only be built one block at a time.

Bloklar

Scratch 2.0'da beş tane C bloğu bulunur ve hepsi Kontrol kategorisinde bulunabilirler.

The Forever If () block.

In Scratch 1.4 and earlier, there was also a Forever If () block. It was replaced with its workaround.

sürekli tekrarla
eğer <> ise

Kullanımları

As C blocks are for checks and loops, they are used almost everywhere. Some uses include:

  • Things that must go on forever
yeşil bayrak tıklandığında
forever
turn cw (15) degrees
  • Checking a condition
when [space v] key pressed
if <(loudness) > [30]> then
stop [all v]
end
  • Repeating an animation a certain amount of times
when gf clicked
repeat (200)
turn ccw (36) degrees
change [color v] effect by (1)
end

Here is an example for both checks and looping:

when I receive [Decrease health v]
change [Health v] by (-1)
if <(health) = [0]> then
repeat (8)
change [color v] effect by (25)
end
end
  • Başlatma/Durdurma
when gf clicked
if<key [space v] pressed?> then
stop [all v]
else
end

There is a check (the If () Then block is checking if the variable Health has a value of 0), and inside the check is a repeat loop (with the Repeat () block). Note how C blocks can be placed inside other C blocks. Tur:Blok Şekilleri

Cookies help us deliver our services. By using our services, you agree to our use of cookies.