Install
Tutorials
Your first program
Make it Walk
Catch the Coins
Red Light, Green Light
Guess the Number
Bouncing Hedgehog
Dodge the Rocks
Coming from Scratch
Differences to Scratch
Continue a Scratch project
Guides
Sprites and costumes
Stages and the window
Time and events
Keys, mouse and controllers
Movement
Sound and music
Text
Touching
Drawing
Effects
Menus and pause menus
Saving
Maps with Tiled
Pixel art and full screen
Sharing your game
It doesn't work!
Examples
Cat
Cat Platformer
Clock
Coin Collector
Custom drawing
Donut IO
Glide
Pause Menu
Pipes
Quiz
Rainbow Vine
Random Dot
Robot
Save Slots
Sensing
Shader
Shakespeare
Smart Rocket
Stress Test
Tiled
Timed Dot
Timer
UI
Volume
Sprites
Sounds
Teaching
Multiple Approach Design
Abiturklassen NRW
Changelog
Moving from 6.x to 7.0
org.openpatch.scratch
Clock
Clock()
getDay()
getDayOfWeek()
getDaysSince2000()
getHour()
getMillisecond()
getMinute()
getMonth()
getSecond()
getYear()
Actions
ActionListener
ActionListener()
whenActionPressed()
whenActionReleased()
Actions
Actions()
bind()
cancelRebind()
getAxis()
getBindingName()
getValue()
isPressed()
isRebinding()
isUsingGamepad()
loadBindings()
rebind()
resetBindings()
saveBindings()
unbind()
Camera
Camera()
changeX()
changeY()
changeZoom()
getPosition()
getX()
getY()
getZoom()
resetZoom()
setPosition()
setX()
setY()
setZoom()
setZoomLimit()
toScreenPosition()
toScreenX()
toScreenY()
toWorldPosition()
toWorldX()
toWorldY()
Circle
Circle()
Color
Color()
equals()
fromARGB()
fromHSB()
getAlpha()
getBlue()
getBrightness()
getGreen()
getHue()
getRed()
getSaturation()
hashCode()
toARGB()
toString()
withAlpha()
withBlue()
withBrightness()
withGreen()
withHue()
withRed()
withSaturation()
Drawing
BitmapText
BitmapText()
addGlyph()
draw()
getContent()
getHeight()
getWidth()
setAlign()
setFont()
setLetterSpacing()
setLineSpacing()
setSpaceWidth()
showText()
Drawing
Drawing()
clip()
image()
imageHeight()
imageWidth()
noClip()
polygon()
rectangle()
DrawingExtension
DrawingExtension()
id()
install()
name()
requires()
version()
DrawingSprite
DrawingSprite()
draw()
Ellipse
Ellipse()
Gamepad
Gamepad
Gamepad()
getStick()
getTrigger()
isButtonPressed()
isConnected()
GamepadListener
GamepadListener()
whenGamepadButtonPressed()
whenGamepadButtonReleased()
whenGamepadConnected()
HtmlColor
HtmlColor()
getRandom()
Operators
Operators()
absOf()
acosOf()
asinOf()
atanOf()
ceilingOf()
constrain()
cosOf()
eToThePowerOf()
floorOf()
lerp()
lnOf()
logOf()
map()
max()
min()
mod()
round()
sinOf()
sqrtOf()
tanOf()
tenToThePowerOf()
Pen
Pen()
changeColor()
changeSize()
changeTransparency()
down()
eraseAll()
getColor()
getLayer()
getPosition()
getSize()
getTransparency()
goToMousePointer()
goToRandomPosition()
isDown()
setColor()
setLayer()
setPosition()
setSize()
setTransparency()
stamp()
up()
Pixels
Pixels()
getArgb()
getColor()
getHeight()
getWidth()
of()
Polygon
Polygon()
addPoint()
Random
Random()
noise()
noiseSeed()
random()
randomInt()
randomPosition()
randomSeed()
randomVector2()
randomX()
randomY()
Recorder
GifEncoder
GifEncoder()
addFrame()
finish()
setDelay()
setDispose()
setFrameRate()
setQuality()
setRepeat()
setTransparent()
start()
GifRecorder
GifRecorder()
snapshot()
start()
stop()
RecorderExtension
RecorderExtension()
id()
install()
name()
requires()
version()
Rectangle
Rectangle()
Save
File
File()
load()
loadOrCreate()
save()
SaveData
SaveData()
getLocation()
loadOrDefault()
path()
save()
SaveExtension
SaveExtension()
id()
name()
requires()
version()
Shader
Shader()
getName()
set()
setName()
Shaders
Shaders()
activate()
add()
deactivate()
get()
getActive()
getCurrent()
getCurrentIndex()
getCurrentName()
isActive()
next()
reset()
switchTo()
Shape
Shape()
contains()
getBounds()
getPoints()
intersects()
rotate()
scale()
translate()
SoundPlayback
SoundPlayback()
isPlaying()
setVolume()
stop()
Sprite
Sprite()
addAnimation()
addCostume()
addCostumes()
addSound()
ask()
broadcast()
changeColorEffect()
changeHeight()
changePosition()
changeSize()
changeTransparency()
changeVolume()
changeWidth()
changeX()
changeY()
createClone()
debug()
deleteThisClone()
disableHitbox()
disableNineSlice()
distanceToMousePointer()
distanceToSprite()
enableHitbox()
extension()
getAnimationFrame()
getAnimationInterval()
getAnswer()
getColorEffect()
getCurrentCostumeIndex()
getCurrentCostumeName()
getDirection()
getHeight()
getHitbox()
getLayer()
getMouse()
getMouseX()
getMouseY()
getPen()
getPosition()
getRotationStyle()
getShaders()
getSize()
getStage()
getText()
getTimer()
getTint()
getTouchingSprite()
getTouchingSprites()
getTransparency()
getVolume()
getWidth()
getX()
getY()
glide()
goLayersBackwards()
goLayersForwards()
goToBackLayer()
goToFrontLayer()
goToMousePointer()
goToRandomPosition()
goToSprite()
hide()
hideVariable()
ifOnEdgeBounce()
isAnimationPlayed()
isAsking()
isClone()
isColorTouchingColor()
isGliding()
isKeyPressed()
isMouseDown()
isSoundPlaying()
isTouchingColor()
isTouchingEdge()
isTouchingMousePointer()
isTouchingSprite()
isVisible()
move()
nextCostume()
pickRandom()
playAnimation()
playSound()
playSoundCopy()
pointTowards()
pointTowardsMousePointer()
previousCostume()
remove()
resetAnimation()
run()
say()
setAnimationFrame()
setAnimationInterval()
setColorEffect()
setDirection()
setHeight()
setHitbox()
setLayer()
setNineSlice()
setPosition()
setRotationCenter()
setRotationStyle()
setSize()
setTint()
setTransparency()
setVolume()
setWidth()
setX()
setY()
show()
showVariable()
stamp()
stopAllSounds()
stopSound()
switchCostume()
think()
toString()
turnLeft()
turnRight()
whenAddedToStage()
whenBackdropSwitches()
whenClicked()
whenIReceive()
whenKeyPressed()
whenKeyReleased()
whenMouseClicked()
whenMouseMoved()
whenRemovedFromStage()
whenStartsAsClone()
Stage
Stage()
add()
addBackdrop()
addSound()
ask()
broadcast()
changeColorEffect()
changeTransparency()
changeVolume()
close()
count()
debug()
display()
eraseAll()
extension()
find()
getAll()
getAnswer()
getCamera()
getColor()
getColorEffect()
getCurrentBackdropIndex()
getCurrentBackdropName()
getHeight()
getMouse()
getMouseX()
getMouseY()
getPausedStage()
getShaders()
getTimer()
getTransparency()
getVolume()
getWidth()
hideVariable()
isAsking()
isKeyPressed()
isMouseDown()
isSoundPlaying()
nextBackdrop()
pauseWith()
pickRandom()
playSound()
playSoundCopy()
previousBackdrop()
randomBackdrop()
remove()
removeAll()
run()
setColor()
setColorEffect()
setCursor()
setTint()
setTransparency()
setVolume()
showVariable()
sortBy()
sortByY()
stopAllSounds()
stopSorting()
stopSound()
switchBackdrop()
waitSeconds()
waitUntil()
whenBackdropSwitches()
whenIReceive()
whenKeyPressed()
whenKeyReleased()
whenMouseClicked()
whenMouseWheelMoved()
Text
Text()
addFont()
getAlign()
getCurrentFontIndex()
getCurrentFontName()
getDefaultFont()
getDefaultFontSize()
getFont()
getLayer()
getPosition()
getStage()
getStyle()
getText()
getTextSize()
getWidth()
getX()
getY()
goLayersBackwards()
goLayersForwards()
goToBackLayer()
goToFrontLayer()
hide()
isVisible()
nextFont()
remove()
setAlign()
setBackgroundColor()
setFont()
setLayer()
setPosition()
setStrokeColor()
setStyle()
setTextColor()
setTextSize()
setWidth()
setX()
setY()
show()
showText()
switchFont()
useFont()
whenAddedToStage()
whenRemovedFromStage()
Tiled
MapObject
MapObject()
getProperty()
getPropertyBoolean()
getPropertyFloat()
getPropertyInt()
getShape()
setClassName()
Property
Property()
setText()
TiledExtension
TiledExtension()
id()
install()
name()
requires()
version()
TiledMap
TiledMap()
getHeight()
getObjectsFromLayer()
getProperty()
getPropertyBoolean()
getPropertyFloat()
getPropertyInt()
getTileCollisionShapes()
getTileHeight()
getTileId()
getTileWidth()
getWidth()
hideLayer()
showLayer()
spawn()
toString()
TilesetImage
TilesetImage()
Timer
Timer()
after()
during()
every()
getSeconds()
interval()
reset()
Transition
Transition()
fromShader()
getName()
toString()
Triangle
Triangle()
UI
Button
Button()
whenPressed()
Choice
Choice()
getIndex()
getSelected()
setSelected()
whenChanged()
Slider
Slider()
getStep()
getValue()
setStep()
setValue()
whenChanged()
Toggle
Toggle()
isOn()
setOn()
whenChanged()
Widget
Widget()
draw()
focus()
getLabel()
hide()
isEnabled()
isFocused()
setBackgroundColor()
setEnabled()
setFocusColor()
setLabel()
setTextColor()
show()
Vector2
Vector2()
add()
angle()
clone()
direction()
distance()
distanceSq()
dot()
equals()
fromPolar()
getX()
getY()
hashCode()
length()
lengthSq()
multiply()
normalVector()
reverse()
rotateBy()
rotateTo()
sub()
toString()
unitVector()
Window
Window()
debug()
exit()
getFrameSmoothing()
getGameSpeed()
getHeight()
getInstance()
getLibraryTitle()
getLibraryVersion()
getMusicVolume()
getSoundVolume()
getStage()
getWidth()
isDebug()
isFullScreen()
isMusicPlaying()
isPaused()
isPixelArt()
isSmoothPixelArt()
isTransitioning()
pause()
playMusic()
resume()
setDebug()
setFullScreen()
setGameSpeed()
setMusicVolume()
setSoundVolume()
setStage()
step()
stopMusic()
transitionToStage()
use()
useFrameSmoothing()
useFullScreen()
usePixelArt()
useSmoothPixelArt()
useSplashLogo()
whenExits()
org.openpatch.scratch.extension
Canvas
Canvas()
clip()
drawImage()
drawImageQuad()
drawImageRegion()
drawOutline()
drawPolygon()
drawRectangle()
drawText()
imageHeight()
imageWidth()
noClip()
setOpacity()
Extension
Extension()
coreVersion()
id()
install()
name()
requires()
version()
ExtensionContext
ExtensionContext()
addLayerDrawer()
addOverlayDrawer()
afterFrame()
beforeTick()
dispatch()
getTickCount()
input()
isLoading()
onExit()
onInputPoll()
onKey()
onLearnerError()
onMouse()
onStageCreated()
onStageDisposed()
registerImageFormat()
runOnGameThread()
Frame
Frame()
getArgb()
getHeight()
getWidth()
savePng()
ImageDecoder
ImageDecoder()
decode()
InputKey
InputKey()
copy()
create()
of()
toString()
InputSnapshot
InputSnapshot()
get()
LayerDrawer
LayerDrawer()
draw()
Powered by
Hyperbook
0.129.0
Scratch for Java
JavaDoc
Contact
📧
Mail
🐘
Mastodon
👨💻
Matrix (Chat)
🌐
English
English
Deutsch
Install
Tutorials
Your first program
Make it Walk
Catch the Coins
Red Light, Green Light
Guess the Number
Bouncing Hedgehog
Dodge the Rocks
Coming from Scratch
Differences to Scratch
Continue a Scratch project
Guides
Sprites and costumes
Stages and the window
Time and events
Keys, mouse and controllers
Movement
Sound and music
Text
Touching
Drawing
Effects
Menus and pause menus
Saving
Maps with Tiled
Pixel art and full screen
Sharing your game
It doesn't work!
Examples
Cat
Cat Platformer
Clock
Coin Collector
Custom drawing
Donut IO
Glide
Pause Menu
Pipes
Quiz
Rainbow Vine
Random Dot
Robot
Save Slots
Sensing
Shader
Shakespeare
Smart Rocket
Stress Test
Tiled
Timed Dot
Timer
UI
Volume
Sprites
Sounds
Teaching
Multiple Approach Design
Abiturklassen NRW
Changelog
Moving from 6.x to 7.0
org.openpatch.scratch
Clock
Clock()
getDay()
getDayOfWeek()
getDaysSince2000()
getHour()
getMillisecond()
getMinute()
getMonth()
getSecond()
getYear()
Actions
ActionListener
ActionListener()
whenActionPressed()
whenActionReleased()
Actions
Actions()
bind()
cancelRebind()
getAxis()
getBindingName()
getValue()
isPressed()
isRebinding()
isUsingGamepad()
loadBindings()
rebind()
resetBindings()
saveBindings()
unbind()
Camera
Camera()
changeX()
changeY()
changeZoom()
getPosition()
getX()
getY()
getZoom()
resetZoom()
setPosition()
setX()
setY()
setZoom()
setZoomLimit()
toScreenPosition()
toScreenX()
toScreenY()
toWorldPosition()
toWorldX()
toWorldY()
Circle
Circle()
Color
Color()
equals()
fromARGB()
fromHSB()
getAlpha()
getBlue()
getBrightness()
getGreen()
getHue()
getRed()
getSaturation()
hashCode()
toARGB()
toString()
withAlpha()
withBlue()
withBrightness()
withGreen()
withHue()
withRed()
withSaturation()
Drawing
BitmapText
BitmapText()
addGlyph()
draw()
getContent()
getHeight()
getWidth()
setAlign()
setFont()
setLetterSpacing()
setLineSpacing()
setSpaceWidth()
showText()
Drawing
Drawing()
clip()
image()
imageHeight()
imageWidth()
noClip()
polygon()
rectangle()
DrawingExtension
DrawingExtension()
id()
install()
name()
requires()
version()
DrawingSprite
DrawingSprite()
draw()
Ellipse
Ellipse()
Gamepad
Gamepad
Gamepad()
getStick()
getTrigger()
isButtonPressed()
isConnected()
GamepadListener
GamepadListener()
whenGamepadButtonPressed()
whenGamepadButtonReleased()
whenGamepadConnected()
HtmlColor
HtmlColor()
getRandom()
Operators
Operators()
absOf()
acosOf()
asinOf()
atanOf()
ceilingOf()
constrain()
cosOf()
eToThePowerOf()
floorOf()
lerp()
lnOf()
logOf()
map()
max()
min()
mod()
round()
sinOf()
sqrtOf()
tanOf()
tenToThePowerOf()
Pen
Pen()
changeColor()
changeSize()
changeTransparency()
down()
eraseAll()
getColor()
getLayer()
getPosition()
getSize()
getTransparency()
goToMousePointer()
goToRandomPosition()
isDown()
setColor()
setLayer()
setPosition()
setSize()
setTransparency()
stamp()
up()
Pixels
Pixels()
getArgb()
getColor()
getHeight()
getWidth()
of()
Polygon
Polygon()
addPoint()
Random
Random()
noise()
noiseSeed()
random()
randomInt()
randomPosition()
randomSeed()
randomVector2()
randomX()
randomY()
Recorder
GifEncoder
GifEncoder()
addFrame()
finish()
setDelay()
setDispose()
setFrameRate()
setQuality()
setRepeat()
setTransparent()
start()
GifRecorder
GifRecorder()
snapshot()
start()
stop()
RecorderExtension
RecorderExtension()
id()
install()
name()
requires()
version()
Rectangle
Rectangle()
Save
File
File()
load()
loadOrCreate()
save()
SaveData
SaveData()
getLocation()
loadOrDefault()
path()
save()
SaveExtension
SaveExtension()
id()
name()
requires()
version()
Shader
Shader()
getName()
set()
setName()
Shaders
Shaders()
activate()
add()
deactivate()
get()
getActive()
getCurrent()
getCurrentIndex()
getCurrentName()
isActive()
next()
reset()
switchTo()
Shape
Shape()
contains()
getBounds()
getPoints()
intersects()
rotate()
scale()
translate()
SoundPlayback
SoundPlayback()
isPlaying()
setVolume()
stop()
Sprite
Sprite()
addAnimation()
addCostume()
addCostumes()
addSound()
ask()
broadcast()
changeColorEffect()
changeHeight()
changePosition()
changeSize()
changeTransparency()
changeVolume()
changeWidth()
changeX()
changeY()
createClone()
debug()
deleteThisClone()
disableHitbox()
disableNineSlice()
distanceToMousePointer()
distanceToSprite()
enableHitbox()
extension()
getAnimationFrame()
getAnimationInterval()
getAnswer()
getColorEffect()
getCurrentCostumeIndex()
getCurrentCostumeName()
getDirection()
getHeight()
getHitbox()
getLayer()
getMouse()
getMouseX()
getMouseY()
getPen()
getPosition()
getRotationStyle()
getShaders()
getSize()
getStage()
getText()
getTimer()
getTint()
getTouchingSprite()
getTouchingSprites()
getTransparency()
getVolume()
getWidth()
getX()
getY()
glide()
goLayersBackwards()
goLayersForwards()
goToBackLayer()
goToFrontLayer()
goToMousePointer()
goToRandomPosition()
goToSprite()
hide()
hideVariable()
ifOnEdgeBounce()
isAnimationPlayed()
isAsking()
isClone()
isColorTouchingColor()
isGliding()
isKeyPressed()
isMouseDown()
isSoundPlaying()
isTouchingColor()
isTouchingEdge()
isTouchingMousePointer()
isTouchingSprite()
isVisible()
move()
nextCostume()
pickRandom()
playAnimation()
playSound()
playSoundCopy()
pointTowards()
pointTowardsMousePointer()
previousCostume()
remove()
resetAnimation()
run()
say()
setAnimationFrame()
setAnimationInterval()
setColorEffect()
setDirection()
setHeight()
setHitbox()
setLayer()
setNineSlice()
setPosition()
setRotationCenter()
setRotationStyle()
setSize()
setTint()
setTransparency()
setVolume()
setWidth()
setX()
setY()
show()
showVariable()
stamp()
stopAllSounds()
stopSound()
switchCostume()
think()
toString()
turnLeft()
turnRight()
whenAddedToStage()
whenBackdropSwitches()
whenClicked()
whenIReceive()
whenKeyPressed()
whenKeyReleased()
whenMouseClicked()
whenMouseMoved()
whenRemovedFromStage()
whenStartsAsClone()
Stage
Stage()
add()
addBackdrop()
addSound()
ask()
broadcast()
changeColorEffect()
changeTransparency()
changeVolume()
close()
count()
debug()
display()
eraseAll()
extension()
find()
getAll()
getAnswer()
getCamera()
getColor()
getColorEffect()
getCurrentBackdropIndex()
getCurrentBackdropName()
getHeight()
getMouse()
getMouseX()
getMouseY()
getPausedStage()
getShaders()
getTimer()
getTransparency()
getVolume()
getWidth()
hideVariable()
isAsking()
isKeyPressed()
isMouseDown()
isSoundPlaying()
nextBackdrop()
pauseWith()
pickRandom()
playSound()
playSoundCopy()
previousBackdrop()
randomBackdrop()
remove()
removeAll()
run()
setColor()
setColorEffect()
setCursor()
setTint()
setTransparency()
setVolume()
showVariable()
sortBy()
sortByY()
stopAllSounds()
stopSorting()
stopSound()
switchBackdrop()
waitSeconds()
waitUntil()
whenBackdropSwitches()
whenIReceive()
whenKeyPressed()
whenKeyReleased()
whenMouseClicked()
whenMouseWheelMoved()
Text
Text()
addFont()
getAlign()
getCurrentFontIndex()
getCurrentFontName()
getDefaultFont()
getDefaultFontSize()
getFont()
getLayer()
getPosition()
getStage()
getStyle()
getText()
getTextSize()
getWidth()
getX()
getY()
goLayersBackwards()
goLayersForwards()
goToBackLayer()
goToFrontLayer()
hide()
isVisible()
nextFont()
remove()
setAlign()
setBackgroundColor()
setFont()
setLayer()
setPosition()
setStrokeColor()
setStyle()
setTextColor()
setTextSize()
setWidth()
setX()
setY()
show()
showText()
switchFont()
useFont()
whenAddedToStage()
whenRemovedFromStage()
Tiled
MapObject
MapObject()
getProperty()
getPropertyBoolean()
getPropertyFloat()
getPropertyInt()
getShape()
setClassName()
Property
Property()
setText()
TiledExtension
TiledExtension()
id()
install()
name()
requires()
version()
TiledMap
TiledMap()
getHeight()
getObjectsFromLayer()
getProperty()
getPropertyBoolean()
getPropertyFloat()
getPropertyInt()
getTileCollisionShapes()
getTileHeight()
getTileId()
getTileWidth()
getWidth()
hideLayer()
showLayer()
spawn()
toString()
TilesetImage
TilesetImage()
Timer
Timer()
after()
during()
every()
getSeconds()
interval()
reset()
Transition
Transition()
fromShader()
getName()
toString()
Triangle
Triangle()
UI
Button
Button()
whenPressed()
Choice
Choice()
getIndex()
getSelected()
setSelected()
whenChanged()
Slider
Slider()
getStep()
getValue()
setStep()
setValue()
whenChanged()
Toggle
Toggle()
isOn()
setOn()
whenChanged()
Widget
Widget()
draw()
focus()
getLabel()
hide()
isEnabled()
isFocused()
setBackgroundColor()
setEnabled()
setFocusColor()
setLabel()
setTextColor()
show()
Vector2
Vector2()
add()
angle()
clone()
direction()
distance()
distanceSq()
dot()
equals()
fromPolar()
getX()
getY()
hashCode()
length()
lengthSq()
multiply()
normalVector()
reverse()
rotateBy()
rotateTo()
sub()
toString()
unitVector()
Window
Window()
debug()
exit()
getFrameSmoothing()
getGameSpeed()
getHeight()
getInstance()
getLibraryTitle()
getLibraryVersion()
getMusicVolume()
getSoundVolume()
getStage()
getWidth()
isDebug()
isFullScreen()
isMusicPlaying()
isPaused()
isPixelArt()
isSmoothPixelArt()
isTransitioning()
pause()
playMusic()
resume()
setDebug()
setFullScreen()
setGameSpeed()
setMusicVolume()
setSoundVolume()
setStage()
step()
stopMusic()
transitionToStage()
use()
useFrameSmoothing()
useFullScreen()
usePixelArt()
useSmoothPixelArt()
useSplashLogo()
whenExits()
org.openpatch.scratch.extension
Canvas
Canvas()
clip()
drawImage()
drawImageQuad()
drawImageRegion()
drawOutline()
drawPolygon()
drawRectangle()
drawText()
imageHeight()
imageWidth()
noClip()
setOpacity()
Extension
Extension()
coreVersion()
id()
install()
name()
requires()
version()
ExtensionContext
ExtensionContext()
addLayerDrawer()
addOverlayDrawer()
afterFrame()
beforeTick()
dispatch()
getTickCount()
input()
isLoading()
onExit()
onInputPoll()
onKey()
onLearnerError()
onMouse()
onStageCreated()
onStageDisposed()
registerImageFormat()
runOnGameThread()
Frame
Frame()
getArgb()
getHeight()
getWidth()
savePng()
ImageDecoder
ImageDecoder()
decode()
InputKey
InputKey()
copy()
create()
of()
toString()
InputSnapshot
InputSnapshot()
get()
LayerDrawer
LayerDrawer()
draw()
Powered by
Hyperbook
0.129.0
Button
Create Shareable URL
Standalone Mode
Select Sections
Copy Shareable URL
UI
Button()
✎ GitHub
CC BY-NC-SA
by
OpenPatch