How to dynamically add a hotspot to current scene, and keep in that current scene only?

  • I have a xml with various scenes and hotspots. I currently have functionality to add hotspots dynamically. However, how can I have it so that my dynamically added hotspot stays in the scene I added it to, so that when I go to a different scene, I can't see the hotspot, but when I go back it's there again?

    Sample action that I'm currently using:

  • Hey Andrey :)

    I knew about keep false, which indeed does the trick with removing the hotspot when I change scene, however when I come back to the scene where I added it, it's also still disappeared (I want it to be kept, but only for that current scene).

    Cheers,
    Sam

  • i!
    Ok, as you know you must out this tag into scene tag.
    any way
    if you want add hotspot dynamically and only in some special scene
    then just call hotpost_Add_action everytime you load this scene
    call this action in onstart event
    scene name="bal" onstart="dinamic_add_hotspot(blabla);"


    that's all


    Andrey *thumbup*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!