Moving Sprites: Force or Set Position?

0 favourites
  • 4 posts
From the Asset Store
Build a thrilling space station scenario with these level assets and characters.
  • Hello,

    I need to design objects to move forward and then backwards when they collide with a wall and was wondering what the most efficient way was.

    I came across the physics manual on Construct2 and it mentioned:

    "Therefore it is highly recommended to control Physics objects entirely via the Physics behavior (by setting forces, impulses, torques etc.), rather than trying to manipulate objects by Set position, Set angle etc."

    Should I use Set Position or go with forces assuming that the number of objects can be over 30 ?


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What object are you moving? Here's how I'm moving enemy worm sprites in my project. I actually have three different ways the worm can change direction. Check out lines 21-22. I think that's the easiest way to make a sprite(with a platform behavior) move the way your described. Hope this helps!

    edit: edited the picture

  • I think you could also use the bullet behaviour. It have the option to set "bounce of solids". Maybe that could work? It also has some physics stuff, gravity acceleration etc.

  • Thank you both for the replies. I am not sure why did not receive an email alert when the post was answered.

    I am looking to implement something as mentioned by "heyguy "


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