0 Favourites

Problem with selecting the "last one object"

  • 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:

    <img src="http://i44.servimg.com/u/f44/13/84/06/30/screen10.png" border="0" />

    Screens of the problem:

    <img src="http://i44.servimg.com/u/f44/13/84/06/30/screen11.png" border="0" />

    <img src="http://i44.servimg.com/u/f44/13/84/06/30/screen12.png" border="0" />

    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).

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Thanks ! I learned a lot with your response =)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
62 5,916
Nesteris's avatar
Nesteris
Unread hot topic
132 10,999
Burvey's avatar
Burvey
Unread hot topic
0 Favourites
XBOX ONE UWP performance?
88 9,698
q3olegka's avatar
q3olegka