Drawing a line that bounces off obstacles?

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.
  • Been trying to figure out a way to do this easily with no luck.

    I want to have my player aim with a line that draws where the object thrown will bounce. Here is a cheap mock up from Paint
    Please login to see this picture.

    I suppose the easiest way to describe it would be like in a pool game, you can see the assist line showing what direction the ball will bounce

  • Hmmm that is interesting.....

    Off the top of my head I see you actually launching out a stream of objects to see where the bounces will be.
    Not sure how easy that would be to code or the impact of using all those objects for something like this.

    Please login to see this link.

  • - Make a second object exactly like your ball, with the ball movement (I guess phsyics?). Name it "Invisible ball". Put its hot spot in the center
    - Create a small, 1 pixel x 1 black pixel object. Name it "Trace"
    - Put the event :
    Start of frame
    Trace : make invisible
    Invisible ball : make invisible
    - Launch the invisible ball as you would launch the visible ball
    - Do this event while the invisible ball is moving :
    Every 100ms
    Paste Trace into background at X("Invisible ball"), Y("Invisible ball")
    - Destroy the invisible ball when it reaches the edge of the playfield

    Should work.

    Francois
    PM: Please login to see this link.

Participate now!

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