possible to start moving backwards?

0 favourites
  • 6 posts
  • hello. [construct 2 : behaviors : spline] Is it possible to start moving backwards?

    For example, the sprite moves from point A to point B. When I press the button, can it turn around and start moving from B to A?

    Thanks in advance

  • I dont have spline Behaviour but you can use "MoveTo" from Rex as its easier with the conditions that have:

    -Move to target

    -On Target Arrived

    And many more useful triggers and Actions.

    etc......

    Also, you dont need any plugin or behaviour as you can just use MoveAtAngle:

    angle(self.x, self.y, Target.x. Target.y)

  • Thanks for answer.

    can u check my project?

    dropbox.com/s/klfgbdn6rzsow19/Spline%20Demo.zip

    (I added behaviors to the archive)

    I only want when I press the REVERSE button, Player starts the reverse moving from the current position. But it does not have such a function

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for answer.

    can u check my project?

    dropbox.com/s/klfgbdn6rzsow19/Spline%20Demo.zip

    (I added behaviors to the archive)

    I only want when I press the REVERSE button, Player starts the reverse moving from the current position. But it does not have such a function

    Thanks for the (Simple Demo + the plugin) that makes it much easier.

    I checked the demo and from what I can see the spine hasn't got the feature of starting at any desired point so that makes it very difficult and limited to deal with. I dont think was meant to work with the reverse in mind, is more like a loop from (First point to the Last) & (Last point to the First).

    Looks really nice though, I heard about it many times but I never use it.

    So the current issue is:

    As you cannot start from any desired point then you have two options:

    1-Either you jump to the last visited point then move (Looks bad)

    or

    2-Wait until he reaches the next point then start reversing

    I added both options so you can choose the one you like most.

    Keep in mind that this at the moment works with looping OFF as we need to hack the points by clearing and adding just the ones that are needed for the direction is going to travel. So if you need looping you will need to watch when hit the last point and clear all the points and add all of them back, other way you could have missing points because when we reverse we remove some.

    For me sounds very hacky but if you like it.

    Spline Capx:

    https://www.dropbox.com/s/11lb07nbqgw0p3r/Spline_Demo.capx?dl=0

    To be honest, I spent hours trying to make it work in a hacky way where from the other side I build my own custom Spine in less than 15 minutes and I have full control, no plugins are needed and you can build more features on top of that.

    Spine No Plugin Capx:

    https://www.dropbox.com/s/z66f5izpbcjaesp/Spline_No_Plugin.capx?dl=0

  • omg thank you very much, you are my hero!

    This is what I needed, Good work, God bless you

  • omg thank you very much, you are my hero!

    This is what I needed, Good work, God bless you

    Np Glad it was helpful))

    God bless you to you too.

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