1.6 KiB
1.6 KiB
Section 04 - Lesson 04 | plane scene and resources
Notes
create plane scene
- create a scene 'plane'
- CharacterBody2D as root node
- change the node name to "Plane" (unnecessary but why not)
character body 2D plane node
- Sprite to animate the 3 frames
- CollisionShape2D for physics
- AnimationPlayer to animate the rotation of the plane
- EngineSound (audio? node?)
animated sprite 2D
- add it
- rename it to Sprite
create a sprite frames resource
- go to Inspector->AnimatedSprite2D->Animation
- click on sprite frames drop down and select "new Sprite Frames"
-
go back to drop down, and click on the sprite frame box
file:../../_share/media/img/section04/lesson04/EX01.png
-
this will open up the following window
file:../../_share/media/img/section04/lesson04/EX02.png
-
notice
- 'spriteframes' tab is selected
-
"default" animation
- 5 frames per second
- set to loop continuously
-
animation frame editor
buttons
- playback controls
-
buttons to add in frames
- individually
- by sprite sheet
- copy and paste frames
- insert empty frames
- move frames around
-
delete frames
file:../../_share/media/img/section04/lesson04/EX03.png