# How do i make a working camera that shows what it sees but pixilated

There is no time limit for how long it takes, I just want to see how many people can do it

Easy.
[scratchblocks]
when green flag clicked
set [video capture v] to <✓ (::grey)::operators>::sensing
set video transparency to (0)
forever
tell (my [stage v]::sensing) to ({switch to costume (video [snap v] on (my [stage v]::sensing))::looks
set [pixelate v] effect to (20)
end
[/scratchblocks]

Scratch Blocks Source Code
[scratchblocks]
when green flag clicked
set [video capture v] to <✓ (::grey)::operators>::sensing
set video transparency to (0)
forever
tell (my [stage v]::sensing) to ({switch to costume (video [snap v] on (my [stage v]::sensing))::looks
set [pixelate v] effect to (20)
end
[/scratchblocks]


also, another question, I wanna see if you can make it film a video and let you play it back. I think that would be a harder challenge

it also has to record sound as well as video

basically, I want it to be like an acual video camera

Ive done that, but the recordings of the audio are chopy.

thats fine i was just asking if anybody can make a working wideo camera, it doesn matter wether the quality is good, or anything like that, it just has to work.

Why? What are you trying to make?

im not trying to make anything with it as of now but i might try to make a game involving said camera

This script will start recording when you click it, then play the video back when you press space:
[scratchblocks]
delete(all v)of(my[costumes v]::sensing)
set[video capture v]to<✓(::grey)::operators>::sensing
set video transparency to(0)
repeat until<key[space v]pressed?>
add (video [snap v] on (my [stage v]::sensing))to(my[costumes v]::sensing)
end
for each((item)::list)in(my[costumes v]::sensing){
}::list
[/scratchblocks]
I'm not entirely sure how recording sound in real time could work though...

where was the "video blank on blank" block at?

Sensing. If the block is cyan, it's in Sensing, if it's dark blue, it's in Motion, and so on (with a few exceptions).

[scratchblocks]
script variables ((audio samples)::grey)((audio)::grey)@delInput@addInput::grey //temporary variables for the scripts
set [audio samples v] to (list@addInput::list)//making the variables a list
warp {
repeat until <key [space v] pressed?>
end
for each ((item)::list) in (audio samples){
for each ((item2)::list) in (item){
}::list
}::list
}::grey
play sound (audio)
[/scratchblocks]
This is a crappy way of doing it.

but where in sensing is the block because I know it is in sensing, i just wanna know where like taking a picture to tell me where.

nevermind found it

thanks guys

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.