Pin on an object same angle distance

Get help using Construct 2

Post » Mon Sep 03, 2012 9:04 pm

Hi everybody
I have a little problem but impossible to resolve ....



I want to pin on an object and that it remains at the same distance
I'm getting there but I get the first image with:
"Set position P1 and Set angle to P1
I would get the second image then I do a "Move fordward 10" but I get the image 3

If you have a idea
Thank you
B
21
S
12
G
4
Posts: 31
Reputation: 4,537

Post » Mon Sep 03, 2012 9:17 pm

instead of using 'move forward 10', use 'set y to self.Y - 10'
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Sep 03, 2012 11:03 pm

Thank you
but when I use "movement car" the "shield : red bar" does not remain at the same distance.
it brings when I turn
B
21
S
12
G
4
Posts: 31
Reputation: 4,537

Post » Tue Sep 04, 2012 10:38 am

With Capx For help
https://dl.dropbox.com/u/102685504/testshild2.capx
Thank youkantin2012-09-04 10:39:47
B
21
S
12
G
4
Posts: 31
Reputation: 4,537

Post » Thu Sep 06, 2012 12:57 pm

Hello Really blocked Please help thank you
B
21
S
12
G
4
Posts: 31
Reputation: 4,537

Post » Thu Sep 06, 2012 1:23 pm

Example capx (using the regular car movement)

How to pin ? just use the pin behavior, set the object where you want the instance, and use the action "pin to object" using position & angle.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Sep 06, 2012 3:15 pm

Hi thank you but
Yes, but the problem is the same I want with the space bar, the shield advance 10px forward.
With Pin is imposible or am I wrong...!
B
21
S
12
G
4
Posts: 31
Reputation: 4,537

Post » Thu Sep 06, 2012 5:39 pm

unpin, move, pin again.

If you have difficult on knowing what car is pinned with what shield, use instances variables.

You can learn about them here: http://www.scirra.com/tutorials/361/understanding-uid-iid-health-of-enemies-and-rocket-smoke-trailTELLES08082012-09-06 17:40:39
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,214
Reputation: 18,486

Post » Sat Sep 08, 2012 7:35 am

Thank you very Much for you help
B
21
S
12
G
4
Posts: 31
Reputation: 4,537


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests