How do I move an object forward?

0 favourites
  • 2 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • Hey! Total beginner's question, I know. I have an object and I want it to move forward when clicking somewhere. I added the action "move forward 250 pixels", however, the object just appears at this position. I actally want it to MOVE there in the sense of sliding.

    Thank you already!!

    Maschka

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are 100 different ways to move something.

    First start learning the built in movement behaviours. Car, bullet, 8 direction etc.

    Then there is custom movement you can define your self but use behaviour feedback.

    If behaviours don't suit what you want to do then you can just hard code you movement in events such as

    (Simple) move X pixels per tick

    Or

    (Lerp) lerp between point a and point b

    Or

    (Waypoint) measure distance to waypoint if greater than speed then move at speed towards waypoint if less than speed then move to waypoint.

    And plenty more.

    Sounds like you might want lerping or waypoint there should be tons of examples in the tutorials sections for c2 if the links are working though you currently have to search using Google I believe until they get the search back into operation.

    Edit. I think I posted a linear lerping example back few weeks ago check my posts.

    Found it

    construct.net/forum/construct-3/how-do-i-8/move-player-smoothly-x-pixels-135006/page-2

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