Skip to content

Commit dd693da

Browse files
committed
more docs
1 parent a3b94a1 commit dd693da

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"template": "method",
3+
"related": [],
4+
"scratchblock": "when backdrop switches",
5+
"name": "whenBackdropSwitches()",
6+
"class": "Sprite",
7+
"description": "This method is called when the backdrop of the stage switches. The method will receive the name of the new backdrop as a paramter.",
8+
"syntax": ["void whenBackdropSwitches(name)"],
9+
"returns": "void",
10+
"examples": [
11+
{ "src": "SpriteWhenBackdropSwitches.java", "preview": "SpriteWhenBackdropSwitches.gif", "lines": "[Rr]ecorder" }
12+
],
13+
"parameters": [
14+
{
15+
"name": "name",
16+
"description": "Name of the new backdrop.",
17+
"type": "String"
18+
}
19+
]
20+
}

docs/en/book/reference/sprite/motion/move.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"name": "move()",
66
"class": "Sprite",
77
"description": "Change the tint by a given amount.",
8-
"syntax": [".changeTint(amount)"],
8+
"syntax": [".move(steps)"],
99
"returns": "void",
1010
"examples": [
11-
{ "src": "SpriteChangeTint.java", "preview": "SpriteChangeTint.gif" }
11+
{ "src": "SpriteMove.java", "preview": "SpriteMove.gif" }
1212
],
1313
"parameters": [
1414
{
15-
"name": "amount",
16-
"description": "Changes the tint by the amount.",
15+
"name": "steps",
16+
"description": "Steps to move in the current direction.",
1717
"type": "float"
1818
}
1919
]

0 commit comments

Comments
 (0)