How do I change an image point via event

0 favourites
  • 7 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • Hi , how can i do to change an image point via "Event.

    The goal is the usage of a Sine Size effect that i would like to occured from the middle of my sprite ( my current default origin start at upper left and i don't want to change that)

    Thanks

  • I don't think you can (to my knowledge).

  • Thanks for reply

  • Perhaps you can cheat this.

    By pinning the sprite object at a certain point to another object, whose pivot point is in a different place relative to the first object's pivot point.

  • Perhaps you can cheat this.

    By pinning the sprite object at a certain point to another object, whose pivot point is in a different place relative to the first object's pivot point.

    I will try that.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Perhaps you can cheat this.

    By pinning the sprite object at a certain point to another object, whose pivot point is in a different place relative to the first object's pivot point.

    Seconded, you can also compute an absolute position using your sprite's local coordinates using a little bit of math.

  • The origin is the position from which all caculations regarding the object are done..

    Scaling, rotating,movement..

    Even if the image representing your object is not even near the origin, Construct will see the origin as the position your object is and all actions regarding the object will take this as a starting point..

    If you want your object to scale from and to the center by actions, the origin should be at the center of your object..

    If for any other actions (rotation,movement) the origin should be somewhere else, using a "dummy" sprite to pin to, as described above would be a fairly simple working solution..

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