Rotation And Parallax 0,0

Get help using Construct 2

Post » Sat Jan 14, 2012 9:17 am

I'm totally stumped and have tried so many different ways. Any help would be greatly appreciated. I'll name my next born child after you. <- One time offer.
B
25
S
5
G
6
Posts: 18
Reputation: 5,154

Post » Sat Jan 14, 2012 11:45 am

Hi

I have another small little problem, when you set the object to position on the mouse, it doesn't want to stay on the mouse when moving, any chance on fixing that.

http://dl.dropbox.com/u/17731970/Rotaryplatform%20one%20issue.capx
B
28
S
6
G
9
Posts: 73
Reputation: 6,366

Post » Sat Jan 14, 2012 12:12 pm

Here its fixed. http://dl.dropbox.com/u/51270524/RotarythingFixedMouse.capx
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sat Jan 14, 2012 12:39 pm

Wait no that didn't do it.. try moving your character, the object moves away from the mouse still...Dobandon2012-01-14 12:47:14
B
28
S
6
G
9
Posts: 73
Reputation: 6,366

Post » Sat Jan 14, 2012 12:53 pm

B
28
S
6
G
9
Posts: 73
Reputation: 6,366

Post » Sat Jan 14, 2012 1:38 pm

From the manual:

[quote]X
Y

Return the position of the mouse cursor in game co-ordinates. This is (0, 0) at the top left of the layout. It changes to reflect scrolling and scaling. However, if an individual layer has been scrolled, scaled or rotated, these expressions do not take that in to account - for that case, use the layer versions below.

X("layer")
Y("layer")

Return the position of the mouse cursor in game co-ordinates, with scrolling, scaling and rotation taken in to account for the given layer. The layer can be identified either by a string of its name or its zero-based index (e.g. Mouse.X(0)).[/quote]

i.e. use Mouse.X("Layer 0") and Mouse.Y("Layer 0").
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Sat Jan 14, 2012 1:46 pm

Thank you smitchel and Thank you Ashley for helping with that part.

I better read some more of the manual.
B
28
S
6
G
9
Posts: 73
Reputation: 6,366

Previous

Return to How do I....?

Who is online

Users browsing this forum: Callan S, gamecorpstudio, Kagubro and 13 guests