AddReferenceFromFile, am I using it correctly?

Home 4 Forums iOS / tvOS Starter Kits The Story Tellers Kit 2 for iOS or tvOS Apps AddReferenceFromFile, am I using it correctly?

This topic contains 2 replies, has 1 voice, and was last updated by  Martin Ortiz 6 months ago.

  • May 20, 2018 at 1:45 pm #184019

    Under Events, which is triggered when puzzle finishes (for example the cheer.wav is played correctly)

    I want to add emitters at runtime, that is, dynamically create them. I tried AddReferenceFromFile, but it does not seem to do what I thought it would, which is to add the emitters into scene at this point in time.

    (I want to do it this way, as I still can not tell if emitters are running even when hidden).

    Here is raw plist text.
    Sparkles.sks – sks file with 3 emitters in it.

    <key>Events</key>
    <dict>
    <key> AddReferenceFromFile</key>
    <string>Sparkles</string>

    <key>Show</key>
    <string>Sparkles</string>

    <key>PlaySound</key>
    <string>cheer.wav</string>
    </dict>

  • May 20, 2018 at 2:25 pm #184020

    Argh, I checked and AddReferenceFromFile had a blank space in front of it, but when I fixed that, it still did not work….

    šŸ™

  • May 20, 2018 at 3:55 pm #184021

    Ok, I think I see the issue, only objects derived from “Element” get grabbed from sks file and added into scene. Emitters are not derived from “Element”.

You must be logged in to reply to this topic.