Scaling Issue

Get help using Construct 2

Post » Mon Apr 22, 2013 4:35 am

Hey guys!
I'm having trouble. Im making a pathfinding html5 "app". It's using a map. Initially it starts Zoomed-in. When you click a button it scales the layout to 0.6.

After this happens the when the user clicks it's not registering correctly.

https://dl.dropboxusercontent.com/u/75047616/app23/index.html

Thats a demo of whats happening.

Click on the blue cross to zoom. and then click to see what I mean.

Any help would be greatly appreciated.

Formula for the width is :
distance(Triangle.Pathfinding.NodeXAt(loopindex), Triangle.Pathfinding.NodeYAt(loopindex), Triangle.Pathfinding.NodeXAt(loopindex + 1), Triangle.Pathfinding.NodeYAt(loopindex + 1))

I don't think this is the issue because the physical click isnt registering correctly.
B
12
S
3
G
3
Posts: 13
Reputation: 2,628

Post » Mon Apr 22, 2013 6:18 am

First thing I would check is your layers all changing scale properly. If a layer is not scaling correctly clicking on it will be offset.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Wed Apr 24, 2013 7:54 pm

Thank you!
B
12
S
3
G
3
Posts: 13
Reputation: 2,628


Return to How do I....?

Who is online

Users browsing this forum: michaelverdi, Yahoo [Bot] and 21 guests