How do I create a mechanic identical to the game "Data Wing"?

0 favourites
  • 5 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • How do I create a mechanic identical to the game "Data Wing"? Let me explain: In the game (world gravity 20), a ball (player) with physical behavior changes its appearance into a triangle by pressing a key. This triangle should have different properties than the ball (floats in the air with slight downward gravity). By pressing the right and left directional arrows, a force would be exerted on its sides to deviate its trajectory slightly. I don't know if I should use the physic behavior or the bullet behavior. For the moment, here's what I've done:

    I managed to turn the tip of the triangle in the direction of the ball when it changes state, but with physics behavior I don't know how to apply a force in the direction of movement and then rotate the triangle with forces.

    With the bullet behavior, I manage to make it take the direction of movement, but when I apply forces to the sides of the triangle, it rotates on itself. Thanks to those who will help me.

  • You can spawn a triangle, but avoid using other behaviors like Pin with physics objects. Also, avoid using non-physics actions like directly changing object angle or position. See the manual for more info.

    I don't know how to apply a force in the direction of movement and then rotate the triangle with forces.

    You can use "Apply force at angle" to propel forward.

    There are several ways to rotate, you can apply angular velocity or torque, or apply force to different points of the object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for these informations. I actually opted for physical behavior.

    I managed to get my two changes of state (ball and triangle) to change in the same direction and at the same speed, but I still have difficulty in moving the triangle (rear drive and 360 drift degrees when the right and left keys are pressed).

    It would be necessary that when the triangle rotates even hypothetically 180 degrees, it should be able to communicate its speed to continue its course.

    I tried applying force from behind (like jet engines) and angular velocity. It works with X or Y coordinates, but it only works when the triangle points up (X) or sideways (Y). This would have to be the case at 360 degrees.

    Do you have any leads on this?

  • It would be necessary that when the triangle rotates even hypothetically 180 degrees, it should be able to communicate its speed to continue its course.

    Can you explain what you mean? If it travels North, and then rotates 90 degrees clockwise, should it now travel West? Or continue flying North, but sideways?

  • Yes, if it travels North, and then rotates 90 degrees clockwise, should it now travel West, here is ultimately what I did.

    The triangle doesn't go in any other direction, but can turn left or right regardless of direction so I'm happy. Here is what I did. Thank you for your help and your explanations.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)