Build Better On-Screen Controls
In Chapter 8, Using the Scene Editor to Add Physics, you created a simple 8-way D-pad controller and an Attack button. While those controls work okay (except for the z-position problem, where newly spawned monsters show up on top of the controls), you’re about to make them much better by giving the player the ability to move and fire with a full 360° of rotation.
Prepping for the New Controls
In the Project Navigator, select the GameScene.sks file to open it up in the Scene Editor.
From the Scene Graph View, select and delete both the controller and the attackButton reference nodes.
To keep your project free of clutter, remove the two corresponding SKS files: Controller.sks and AttackButton.sks. When prompted, ...
Get Apple Game Frameworks and Technologies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.