Results 1 to 4 of 4

Thread: Difference between Init and Start on scene

  1. #1
    Sencha User
    Join Date
    Aug 2013
    Location
    New York
    Posts
    19
    Vote Rating
    0
      0  

    Default Difference between Init and Start on scene

    What's the difference between Init and Start in the scene actions?

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Posts
    304
    Vote Rating
    28
      1  

    Default

    Init is executed before the scene is loaded, so basically before any object in your scene exists. Start is executed after the scene has been fully loaded, so all the objects exist. You should use Init to initialize variables that you plan to use throughout your animation, and Start to execute functions just before your scene starts playing.

  3. #3
    Sencha User
    Join Date
    Aug 2013
    Location
    New York
    Posts
    19
    Vote Rating
    0
      0  

    Default

    Thank you for the explanation. Are there performance benefits using one over the other?
    Quote Originally Posted by miro.bojic View Post
    Init is executed before the scene is loaded, so basically before any object in your scene exists. Start is executed after the scene has been fully loaded, so all the objects exist. You should use Init to initialize variables that you plan to use throughout your animation, and Start to execute functions just before your scene starts playing.

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    304
    Vote Rating
    28
      0  

    Default

    Performance is the same, the only difference is in order of execution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •