sprite kit - Stop Game auto starting Xcode spritekit -


i have written game in xcode in myscene.m file. have problem however. when ever game loads testing or opened game automatically starts. there code can implement start game when screen in touched?

thanks in advance.

to execute method when screen touched:

-(void)touchesbegan:(nsset *)touches withevent:(uievent *)event {     [self startmygame]; }  -(void)startmygame {     // add game start code here... } 

you should think code logic. menu screen run before game started. menu options such "start game" give user clear choice start game when ready. food thought...


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -