sprite kit - How to invoke a ColorSprite( set in GameScene.sks) in GameScene.swift or GameViewController.swift? -


i'm newbie sprite-kit. here question below, 1) add color sprite in gamescene.sks named "spritename" 2) want add physicsbody "spritename"(the color sprite) in scene.swift or gameviewcontroller.swift.

so how ?

i've found way tutorial below: http://www.techotopia.com/index.php/an_ios_8_swift_sprite_kit_level_editor_game_tutorial#creating_the_archery_scene

and here key line in above example.

let archeryscene = archeryscene(filenamed: "archeryscene") 

the first "archeryscene" .swift ,and latter .sks line means combine these 2 difference files name.

and below way call .sks node in .swift

let welcomenode = childnodewithname("welcomenode") 

Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -