Place Collectibles and Doors
Apple Game Frameworks and Technologies — by Tammy Coron (118 / 193)
Published in
3 min readSep 29, 2021
👈 Add a Physics Contact Extension | TOC | Add Code to Destroy Collectibles 👉
Switch to the GameScene.sks file to open it in the Scene Editor. Once there, add three new sprite nodes with the following settings.
First, start with the key:
Next, add some food:
Finally, give Val some treasure:
With the items in place, you’re ready to add some doors — three, actually — so drag three more sprite nodes into the scene. Set them up, like so:
When you’re done, your scene will look something like the image.