- 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.
推薦閱讀
- Ansible Configuration Management
- 平面設(shè)計(jì)初步
- Introduction to DevOps with Kubernetes
- Blockchain Quick Start Guide
- 21天學(xué)通C++
- Docker Quick Start Guide
- 網(wǎng)絡(luò)綜合布線設(shè)計(jì)與施工技術(shù)
- 水下無(wú)線傳感器網(wǎng)絡(luò)的通信與決策技術(shù)
- 網(wǎng)中之我:何明升網(wǎng)絡(luò)社會(huì)論稿
- Hands-On Data Warehousing with Azure Data Factory
- Linux內(nèi)核精析
- R Data Analysis Projects
- 智慧未來(lái)
- 數(shù)據(jù)要素:全球經(jīng)濟(jì)社會(huì)發(fā)展的新動(dòng)力
- 生成對(duì)抗網(wǎng)絡(luò)項(xiàng)目實(shí)戰(zhàn)