Set force towards Image Point?

This forum is currently in read-only mode.
  • Hello!

    I'm working on a game using physics.

    I just wonder how to use Set Force Towards Position to an image point. (if that's possible)

    Scenario : A thruster game. I have an image point on the nose of my spacecraft. And when I steer,

    I want it to add force towards the position the nose is pointing by pressing thrust key (Up arrow).

    Any help would be thankfully recieved

  • I found the solution, Or something that works for me.

    I'm making another object. Then I attach it to the spaceships image Point 1. (Calling the new object Pointer)

    Making Pointer invisible on start.

    Then in add force towards angle, I put

    Pointer.X

    Pointer.Y

    And voila!

    In case someone else gets this problem.

  • Even though you solved the problem, I just thought I should mention that you can get the image point locations with this:

    object.ImagePointX("imagepoint")

    object.ImagePointY("imagepoint")

    You could use this so you don't need a dummy object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just chiming in to say that linkman's solution is a good one, I use it all the time.

  • Ohh, ok that sounds easyer! I alwais have a way of finding the moust difficult ways doing things:)

    Thanks to both of you for you're answers!

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