File tree Expand file tree Collapse file tree 6 files changed +9
-41
lines changed Expand file tree Collapse file tree 6 files changed +9
-41
lines changed Original file line number Diff line number Diff line change 1
1
images {
2
- image: "/assets/images/bunny2_ready .png"
2
+ image: "/assets/images/shipBlue_manned .png"
3
3
}
4
4
extrude_borders: 2
Original file line number Diff line number Diff line change 2
2
tags : animation
3
3
title : Tween animation
4
4
brief : This example shows how to tween animate the position of a game object.
5
- scripts : bunny .script
5
+ scripts : spaceship .script
6
6
---
7
7
8
8
![ tween] ( basic_tween.png )
Original file line number Diff line number Diff line change 1
1
name: "default"
2
2
scale_along_z: 0
3
3
embedded_instances {
4
- id: "bunny "
4
+ id: "spaceship "
5
5
data: "components {\n"
6
6
" id: \"script\"\n"
7
- " component: \"/example/bunny.script\"\n"
8
- " position {\n"
9
- " x: 0.0\n"
10
- " y: 0.0\n"
11
- " z: 0.0\n"
12
- " }\n"
13
- " rotation {\n"
14
- " x: 0.0\n"
15
- " y: 0.0\n"
16
- " z: 0.0\n"
17
- " w: 1.0\n"
18
- " }\n"
7
+ " component: \"/example/spaceship.script\"\n"
19
8
"}\n"
20
9
"embedded_components {\n"
21
10
" id: \"sprite\"\n"
22
11
" type: \"sprite\"\n"
23
- " data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
24
- "default_animation: \\\"bunny2_ready\\\"\\n"
12
+ " data: \"default_animation: \\\"shipBlue_manned\\\"\\n"
25
13
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
26
- "blend_mode: BLEND_MODE_ALPHA\\n"
14
+ "textures {\\n"
15
+ " sampler: \\\"texture_sampler\\\"\\n"
16
+ " texture: \\\"/assets/sprites.atlas\\\"\\n"
17
+ "}\\n"
27
18
"\"\n"
28
- " position {\n"
29
- " x: 0.0\n"
30
- " y: 0.0\n"
31
- " z: 0.0\n"
32
- " }\n"
33
- " rotation {\n"
34
- " x: 0.0\n"
35
- " y: 0.0\n"
36
- " z: 0.0\n"
37
- " w: 1.0\n"
38
- " }\n"
39
19
"}\n"
40
20
""
41
21
position {
42
22
x: 60.0
43
23
y: 96.0
44
- z: 0.0
45
- }
46
- rotation {
47
- x: 0.0
48
- y: 0.0
49
- z: 0.0
50
- w: 1.0
51
- }
52
- scale3 {
53
- x: 1.0
54
- y: 1.0
55
- z: 1.0
56
24
}
57
25
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments