Ecation's Recent Forum Activity

  • Hi!

    Thank you for a detailed response! Finally had the chance to test this today. I think your second method is suitable for me, but unfortunately the result still seems to be off. Here are the relevant events as text:

    [images]

    ----+ Touch: On touched images

    --------+ images: Pick Own parent feebackBGTiled

    ---------> images: Set angleToParent to angle(feebackBGTiled.X,feebackBGTiled.Y,Self.X,Self.Y)

    ---------> images: Set distanceToParent to distance(feebackBGTiled.X,feebackBGTiled.Y,Self.X,Self.Y)

    ------------+ images: [X] Is scaled

    -------------> images: Tween "" property Position to ScrollX, ScrollY in 0.5 seconds (In Out Sinusoidal, destroy: No, loop: No, ping pong: No)

    -------------> images: Tween "" property Size to images.Width×2, images.Height×2 in 0.5 seconds (In Out Sinusoidal, destroy: No, loop: No, ping pong: No)

    -------------> images: Set scaled to True

    ------------+ System: Else

    -------------> images: Tween "" property Size to images.Width÷2, images.Height÷2 in 0.5 seconds (Default, destroy: No, loop: No, ping pong: No)

    -------------> System: Wait 0.5 seconds

    -------------> [DISABLED] images: Tween "" property Position to images.origX, images.origY in 0.5 seconds (Default, destroy: No, loop: No, ping pong: No)

    -------------> images: Tween "" property Position to (feebackBGTiled.X+cos(Self.angleToParent)×Self.distanceToParent), (feebackBGTiled.Y+sin(Self.angleToParent)×Self.distanceToParent) in 0.5 seconds (Default, destroy: No, loop: No, ping pong: No)

    -------------> images: Set scaled to False

    A screenshot might look more clear:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!

    My object is a child of another object. I want my object to move to a location and then return back to it's original location. I think I would need to store it's original location in order to do that. But it seems that the original location is relative to it's parent object. So the question is: how can I get the relative coordinates of a child object?

    Tagged:

Ecation's avatar

Ecation

Member since 12 Oct, 2020

Twitter
Ecation has 2 followers

Trophy Case

  • 4-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

8/44
How to earn trophies