Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » So I'm making a video recording project but...
- trolley_explodes
-
100+ posts
So I'm making a video recording project but...
Here is the code.
1.) It's very laggy. It's probably the run without screen refresh blocks, but there's no real workaround I can think of.
2.) When you end the recording, it doesn't give you the code. I have no idea why, and this is the main problem. Can someone tell me what's wrong and how I can fix it?
EDIT: The glitches were fixed!
when gf clickedThere are 2 problems.
delete all of [COLORS v]
delete all of [Code v]
hide list [Code v]
turn video (on v)
set video transparency to (100)
set [starting in v] to (3)
say [Click when you're ready to record. Click again afterward to stop the recording and get your save code.]
wait until <mouse down?>
set video transparency to (0)
repeat (3)
say (starting in)
wait (1) seconds
change [starting in v] by (-1)
end
say []
repeat until <mouse down?>
Record Frame:: custom blocks
wait (0) seconds
end
Get Code:: custom blocks
define Record Frame // Run without screen refresh.
set [x v] to (-240)
set [y v] to (180)
go to x: (x) y: (y)
repeat until <not <(y) = (y position)>>
repeat until <not <(x) = (x position)>>
change [x v] by (1)
change x by (1)
Scan Color:: custom blocks
end
set [x v] to (-240)
set x to (-240)
change [y v] by (-1)
change y by (-1)
end
define Scan Color // Run without screen refresh.
set [color v] to (0)
repeat (32)
repeat (32)
repeat (16)
if <touching color (color)> then
add (color) to [COLORS v]
stop [this script v]
end
change [color v] by (16)
end
change [color v] by (1792)
end
change [color v] by (458752)
end
define Create Code // Run without screen refresh.
set [code v] to ()
set [frame idx v] to (1)
repeat (length of [COLORS v]
repeat (172800)
set [code v] to (join (code) (join [,] (item (frame idx) of [COLORS v]))
end
change [frame idx v] by (1)
end
add [Your code is:] to [Code v]
add (code) to [Code v]
add [Triple click to copy.] to [Code v]
show list [Code v]
1.) It's very laggy. It's probably the run without screen refresh blocks, but there's no real workaround I can think of.
2.) When you end the recording, it doesn't give you the code. I have no idea why, and this is the main problem. Can someone tell me what's wrong and how I can fix it?
EDIT: The glitches were fixed!
Last edited by trolley_explodes (Yesterday 16:26:04)
- minniesworld
-
100+ posts
So I'm making a video recording project but...
Can you share and link the project we can see the issue happen? Also, I've made a project called screenshot engine, and I've optimized it as much as I can, and you might be able to use it for this.
Last edited by minniesworld (Yesterday 02:31:30)
- trolley_explodes
-
100+ posts
So I'm making a video recording project but...
Sure, linked Can you share and link the project we can see the issue happen? Also, I've made a project called screenshot engine, and I've optimized it as much as I can, and you might be able to use it for this. here.
- cosmosaura
-
1000+ posts
So I'm making a video recording project but...
Glad you found an answer! Since this is resolved, I'll close it to help highlight the answer and prevent future responses. If you need it re-opened, though, you can report this and ask. 

- Discussion Forums
- » Help with Scripts
-
» So I'm making a video recording project but...