0 Favourites

4 direction movement?

  • How can I move smoothly an object from A to B and then to C.

    Let's say I click at 3,3 and my character is at 0,0.

    I want to move him from 0,0 to 3,0 and then to 3,3. How can I do that?

  • I don't know if this is the "correct" way to do it, as I'm still very new at this too, but I made this little example for you of how you might achieve what you're trying to do:

    dl.dropbox.com/u/66278067/example1.capx

    I just made a few "invisible" boxes, and created conditions so that when it arrives at one, it goes to the next. If you search "pathfinding" or "waypoints" you might find some more useful advice.

    Hope that helps a bit :)

    Edit: Sorry, given exactly what you wrote, you'd need to replace the first event to be a click to go to the first invisible box. From there, my example should get what you want :)

  • I don't know if this is the "correct" way to do it, as I'm still very new at this too, but I made this little example for you of how you might achieve what you're trying to do:

    http://dl.dropbox.com/u/66278067/example1.capx

    I just made a few "invisible" boxes, and created conditions so that when it arrives at one, it goes to the next. If you search "pathfinding" or "waypoints" you might find some more useful advice.

    Hope that helps a bit :)

    Edit: Sorry, given exactly what you wrote, you'd need to replace the first event to be a click to go to the first invisible box. From there, my example should get what you want :)

    This is an extremely cool and helpful little demo that told me a lot. You can just work with points and not worry about a grid. Yum!

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I'm talking about pathfinding but thanks for the example and sorry for not making a complete question :)

  • There's a plugin for that

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