- Godot Engine Game Development Projects
- Chris Bradfield
- 149字
- 2021-06-18 18:51:28
Node setup
Click Scene | New Scene and add the following nodes. Don't forget to set the children to not be selected, like you did with the Player scene:
- Area2D (named Coin)
- AnimatedSprite
- CollisionShape2D
Make sure to save the scene once you've added the nodes.
Set up the AnimatedSprite like you did in the Player scene. This time, you only have one animation: a shine/sparkle effect that makes the coin look less flat and boring. Add all the frames and set the Speed (FPS) to 12. The images are a little too large, so set the Scale of AnimatedSprite to (0.5, 0.5). In the CollisionShape2D, use a CircleShape2D and size it to cover the coin image. Don't forget: never use the scale handles when sizing a collision shape. The circle shape has a single handle that adjusts the circle's radius.
推薦閱讀
- 現(xiàn)代測控電子技術
- AutoCAD繪圖實用速查通典
- 人工智能超越人類
- Getting Started with MariaDB
- VB語言程序設計
- RPA(機器人流程自動化)快速入門:基于Blue Prism
- 變頻器、軟啟動器及PLC實用技術260問
- 網(wǎng)絡安全與防護
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- Microsoft System Center Confi guration Manager
- 青少年VEX IQ機器人實訓課程(初級)
- 3ds Max造型表現(xiàn)藝術
- 大數(shù)據(jù):引爆新的價值點
- 筆記本電腦維修之電路分析基礎
- 企業(yè)級Web開發(fā)實戰(zhàn)