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.
  • Hi guys, how would I go about creating a flowing water, or something floating on water? I've been doing this in a 'conveyor belt' style way, where if an object overlaps the water, it moves with the water. However, what I want is the object to gradually slow down, as if it's reaching the edge of the bank or something.

    Is there any particular built-in movement I should use to this or do I code some sort of expression, like if getting close to...set speed to x...?

    Thanks guys.

    Personal portfolio: Please login to see this link.
    2D designer for: Please login to see this link.

  • It's hard to help without greater detail. You could set up zones, or active objects that trigger changes to the object's x position. The zones/objects in the center would create a bigger change to the object's position than the object's closer to the bank.

    So, this could represent fast movement:

    Every .01 second.

    x of floatingobject = x of floatingobject+1

    This could represent slow movement

    Every .3 second.

    x of floatingobject = x of floatingobject+1

    You could play with the numbers to get the speed you want.

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

  • Great, thanks for the help mate. Will give that a go.

    Personal portfolio: Please login to see this link.
    2D designer for: Please login to see this link.

  • A simple tweening calculation for easing in a movement is:

    x position + ((targetX-x position)*0.1)

    What this does, is it moves the object along the x axis based on the distance the object is from the target. If far away, the object moves greater distance... if closer, the object moves tiny distances until it reaches the target. You could adjust this to have it slow down nicely. If you play with the max() and min() functions, you can make sure the object doesn't move too slow or too fast.

    Please login to see this link.

    My examples:
    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

Participate now!

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