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

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.

主站蜘蛛池模板: 洪雅县| 宁都县| 河源市| 湖南省| 揭东县| 新丰县| 鄄城县| 调兵山市| 沾化县| 普宁市| 井研县| 德兴市| 南澳县| 铜川市| 沂水县| 张北县| 琼海市| 丽水市| 屏边| 申扎县| 佛山市| 元朗区| 东源县| 西昌市| 常州市| 湟源县| 沂南县| 鲁甸县| 绥棱县| 财经| 会昌县| 施秉县| 会昌县| 光泽县| 玉溪市| 阿坝| 方山县| 高碑店市| 上思县| 新和县| 萨嘎县|