added plane scene
This commit is contained in:
parent
9cfd177142
commit
f5c9e58ddf
6 changed files with 44 additions and 0 deletions
BIN
_share/media/img/section04/lesson04/EX04a.png
Normal file
BIN
_share/media/img/section04/lesson04/EX04a.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
_share/media/img/section04/lesson04/EX04b.png
Normal file
BIN
_share/media/img/section04/lesson04/EX04b.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
BIN
_share/media/img/section04/lesson04/EX04c.png
Normal file
BIN
_share/media/img/section04/lesson04/EX04c.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
BIN
_share/media/img/section04/lesson04/EX05.png
Normal file
BIN
_share/media/img/section04/lesson04/EX05.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
BIN
_share/media/img/section04/lesson04/EX06a.png
Normal file
BIN
_share/media/img/section04/lesson04/EX06a.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
|
|
@ -53,3 +53,47 @@
|
||||||
|
|
||||||
#+attr_html: :width 600px
|
#+attr_html: :width 600px
|
||||||
file:../../_share/media/img/section04/lesson04/EX03.png
|
file:../../_share/media/img/section04/lesson04/EX03.png
|
||||||
|
|
||||||
|
**** frame duration
|
||||||
|
- the frame duration textbox allows you to set the duration of a specific frame
|
||||||
|
- this is apparently done by time
|
||||||
|
|
||||||
|
*** adding frames
|
||||||
|
- click on the add frames button
|
||||||
|
#+attr_html: :width 600px
|
||||||
|
file:../../_share/media/img/section04/lesson04/EX04a.png
|
||||||
|
|
||||||
|
- add a sprite sheet
|
||||||
|
- resize the sprite grid so godot can know what the sprites are
|
||||||
|
#+attr_html: :width 600px
|
||||||
|
file:../../_share/media/img/section04/lesson04/EX04b.png
|
||||||
|
|
||||||
|
- when you are satisfied with the frames available, select all and add the frames
|
||||||
|
#+attr_html: :width 600px
|
||||||
|
file:../../_share/media/img/section04/lesson04/EX04c.png
|
||||||
|
|
||||||
|
** resources
|
||||||
|
- currently the sprite we created is embedded as an internal resource to our plane scene
|
||||||
|
- if you save it, then the information regarding the frames will be moved to that tres file you saved
|
||||||
|
- allows you to reuse the frame resource
|
||||||
|
|
||||||
|
*** saving the sprite frame as a resource
|
||||||
|
- click on Inspector->AnimatedSprite2D->Animation->Sprite Frame drop down arrow
|
||||||
|
- in the pop up menu click on 'save as'
|
||||||
|
|
||||||
|
#+attr_html: :width 300px
|
||||||
|
file:../../_share/media/img/section04/lesson04/EX05.png
|
||||||
|
|
||||||
|
** NOTE: if the plane is too large (or small)
|
||||||
|
- go to the plane scene
|
||||||
|
- select the AnimatedSprite2D from the scene menu
|
||||||
|
- go to Inspector->Node2D->Transform->Scale
|
||||||
|
- change values as appropriate
|
||||||
|
|
||||||
|
** add the plane scene
|
||||||
|
1. go to the game scene
|
||||||
|
2. click on the 'instantiate child node'
|
||||||
|
#+attr_html: :width 300px
|
||||||
|
file:../../_share/media/img/section04/lesson04/EX06a.png
|
||||||
|
|
||||||
|
3. from dialog popup, select the plane.tscn scene
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue