Movable hotspot sprite

  • I'm trying to make a plugin that will allow a sprite to be added to krpano that will maintain its position relative to the pano as the user moves around. I've tried everything I can think of and I've found a couple different ways of adding a sprite that stays in place on stage while the pano moves but nothing that allows the sprite to move with the pano. I've tried:
    - adding the sprite directly to the plugin
    - adding the sprite to the plugin layer
    - adding the sprite to the hotspot layer
    - adding the sprite to and individual hotspot.sprite
    - setting the hotspot.sprite to my sprite

    What am I missing? I'm sure there has to be a way to do this.

    Thanks!

  • How can I accomplish this? I know how to draw a new hotspot by setting the points of the hotspot and I know how to create an image hotspot using a url but how do I create a hotspot using a custom Sprite object?

  • Hi,

    you can add a hotspot via calling "addhotspot(...)" and then added your Sprites to the hotspot sprite, but just adding a Sprite itself anywhere doesn't work of course - the position and scale of the hotspot needs to calculated and krpano does this only for hotspot elements,

    best regards,
    Klaus

Participate now!

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