官术网_书友最值得收藏!

Creating the scene

Start by clicking the Add/Create a New Node button and selecting an Area2D. Then, click on its name and change it to Player. Click Scene | Save Scene to save the scene. This is the scene's root or top-level node. You'll add more functionality to the Player by adding children to this node:

Before adding any children, it's a good idea to make sure you don't accidentally move or resize them by clicking on them. Select the Player node and click the icon next to the lock: 

The tooltip will say Make sure the object's children are not selectable, as shown in the preceding screenshot.

It's a good idea to always do this when creating a new scene. If a body's collision shape or sprite becomes offset or scaled, it can cause unexpected errors and be difficult to fix. With this option, the node and all of its children will always move together.

主站蜘蛛池模板: 建始县| 龙泉市| 涟源市| 宣威市| 吴川市| 芜湖市| 察雅县| 瑞昌市| 洪洞县| 呈贡县| 辽源市| 广南县| 瑞安市| 富民县| 福海县| 扶绥县| 阿拉善左旗| 前郭尔| 宿迁市| 拉孜县| 宜兰县| 渑池县| 台南县| 高尔夫| 大田县| 杭锦后旗| 凤山县| 望江县| 三门峡市| 班戈县| 刚察县| 黔西| 永平县| 烟台市| 南京市| 韶山市| 宜宾市| 大新县| 将乐县| 迁西县| 韩城市|