Hi, I wan't to ask how I can get an real position of mouse. I give You an example:
I made an event:
System > Every Tick :Action: Sprite Set Position (Mouse.X, Mouse.Y)
and then 2 other events:
Mouse > wheelup :Action: System > Set layout scale to LayoutScale + 0.1
Mouse > wheeldown :Action: System > Set layout scale to LayoutScale - 0.1
and now when i'm testing it and scaling the layout the Sprite position is at cursor but only on default scale. I'm trying to use absoluteX/Y but it not worked.
How I can get real mouseX/Y?
Thanks for reply, sorry for my engish. :)
Use mouse.x(layer) and mouse.y(layer) maybe?
maybe you could fix it by having your mouse sprite on it's own layer with layer scaling set to 0,0.
sqiddster, I tried it and it doesn't works.
kingpenguin, but in a moment I'll need to spawn objects at mouse pos on scaled layer. :/
Thanks for replies.
That's strange... You typed didn't type 'layer' did you? you have to type the actual name of the layer in quotation marks.
Develop games in your browser. Powerful, performant & highly capable.
Ahh, I used LayoutScale not LayerScale, now it works. Thanks. :)
by the way - to get a linear scaling, you should be multiplying/dividing by 0.9 or something instead of adding/subtracting. That way, it won't act strangely when the value approaches zero.