Pin behavior or Set position to another object.

0 favourites
  • 9 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Hi everyone.

    I'm currently making a platformer game, with a player composed of multiple sprites. (I use this to split the player in half, this way i can shoot / slash with the torso / arms, and continue walking or jumping legs animations), the elements are positioned over an invisible sprite wich has the platformer behavior.

    Here is my question, what do you think is best suited for this, the pin behavior or the Set position to another object every ticks ?

    It feels the same for me and the two work, but i'm wondering if one is best suited and better for performances (CPU usage frame rate).

    Actually i dont really get the difference between the two. <img src="smileys/smiley5.gif" border="0" align="middle" />

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i had the same question a while back and after some snooping around i think that the pin behavior is just a

    every tick+Set position to another object+automated coordinates(x,y)because you visually "pin" it to the other object.

  • Roccinio i had the same reflection.

    I started at first by using the Set position to object, and when all was working just fine i remembered the Pin behavior, i tried it again and ended with the same result, pin with angle/position option.

    On a small project i guess we can use one or another, but for a bigger project i'm wondering which is best, performance wise.

  • Ashley

    i am almost certain that they are 100% the same performance wise.but i guess only our software guru can answer this!

  • This has come up a couple of times and the answer is that they are identical in terms of performance.

  • Thanks guys for the answers ! I searched in the forum and wasn't sure. Would be good if a post was made with the various concerns about Behaviors and actions performance comparision. I saw a post similar to the mine about Bullet and movement ;).

  • You're going to get the same results either way. Just use the one that you're most comfortable with.

  • I'd pin it. Just because I like the sound of it. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Just fell on this thread and thought I'd add my input.

    As of this moment, the Pin behavior is more reliable when you need to do accurate tracking. For example, I needed an object's location and rotation to update in relation to the mouse cursor, without a delay. It did a really great job compared to setting the position and angle every tick.

    I have not notice any difference in performance.

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