Problem with selecting the "last one object"

Get help using Construct 2

Post » Sun Feb 19, 2012 7:14 pm

Hi, I've got a little problem with the "Set angle toward" function.
My game is something like that:

-A button to create a new platform (physic object, drag&drop)
-A default platform that is created when the layer is loaded
-A a bal that is used to set the angle of the platform.

So, that I want to do is:

-When I click on the button, it create a new platform at the center of the layer.
-When I click on one platform, the ball go to the right side of it, and when I stay clicking the ball, the angle of the "selected" platform change following the ball (the mouse so).

that it really happen:

-When I click on the button, it create a new platform at the center of the layer.
-When I click on one platform, the ball go to the right side of it.
-When I stay clicking the ball, the angle of ALL platforms change following the ball (the mouse so).

Here is my event sheet:



Screens of the problem:






So, what I have to do to just move the latest platform selected and not all the platform created ?

Thanks (sorry for the english mistakes, I'm french).
B
4
Posts: 5
Reputation: 585

Post » Sun Feb 19, 2012 9:24 pm

Last edited by Yann on Sun Sep 14, 2014 9:34 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Feb 19, 2012 10:15 pm

Thanks ! I learned a lot with your response =)
B
4
Posts: 5
Reputation: 585


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja, Yahoo [Bot] and 25 guests