Parallax Scrolling moves sprites, not logical position? (Fixed in build 9171)

Fool

  • Posts: 88
So I'm still grappling with the same UI problem I've been dealing with for a while.
I saw that certain problems with parallax had been fixed so I though I'd give it another go.

Long story short, if I add a print statement to a click event on a UI element, and then move my character around, the UI layer (scroll factor 0) moves with the camera or screen, but the click handler only fires when I click on the original spot on the map that the UI element was placed..instead of the click handler reacting to input *relative to the screen* position of the UI element.

Also for a variety of reasons I can't just anchor my UI elements. Basically I'm looking at changing how my UI functions and is laid out just to compensate for this limitation. Any heads up on why layer parallax changes the position of actor sprites, but not, say, the actual position of the actor? I was under the impression that the whole layer was actually moving or scrolling, relative to the other layers.

Edit: Thanks Devs for the quick fix. And thank you Rob for letting me know! This is the reason I chose stencyl  8)

« Last Edit: May 17, 2016, 01:35:11 pm by Fool »

rob1221

  • *
  • Posts: 9473
Fixed in b9171.  The mouse detection wasn't taking into account the scroll factor of the layer.