question regarding distance and scale

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I have an object (arrow) with a fixed xscale that rotates to wherever my character turns, I need for that arrow to shrink whenever it collides other objects so that the arrow xscale is give or take the same as the distance.

    I tried getting the distance between two points (character and the other object) and dividing it by the width of the arrow...but the arrow gets bigger...

    can someone help me with the formula for this?

    Thanks in advance

  • to make it shrink at proximity it should be correct: distance/arrow width

    ex:
    300*1.0/32= x9,37
    20*1.0/32= x0,625

    make sure you don't divide by "owidth" but use a fixed width because it will update at same time!

    a selection of my Fusion examples can be found Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!