User Tag List

Results 1 to 6 of 6

Thread: Drawing an instant curved line

  1. #1
    Clicker Fusion 2.5
    Tobias_Edvardsen's Avatar
    Join Date
    Jun 2015
    Location
    Drammen, Norway
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Drawing an instant curved line

    I am working on improving a throwing mechanic I have for my project. I've included an unlisted video (10 sec long) which demonstrates the current solution.

    https://youtu.be/Cot6Qk3N_xI

    As seen in the video, the orange dotted line indicates the trajectory the thrown grenade will have. The orange dot object act the same way as the grenade, spawning every frame to give the illusion of a line, and is destroyed on collision with an obstacle. You may notice that upon pressing the throwing button, the dotted line has to travel from the player to the ground before illustrating a line, as well as readjust in the same pace if any mouse movement is applied.

    What I would like is to replace this dotted line with a solid curved line that is instantly drawn upon pressing the throwing button. That way you can instantly tell where the grenade will land, regardless if you're moving the mouse.

    I am unsure as to how to draw a curved line that will match the output of the thrown grenades physics. Does anyone have an optimal solution to this? Thanks!

    Best regards,
    Tobias Edvardsen

  2. #2
    Clicker Fusion 2.5

    Join Date
    Jan 2018
    Posts
    197
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    si c'est une courbe calculée, pourquoi ne pas faire le meme travail dans une boucle rapide? si c'est un objet qui se deplace automatiquement avec un mouvement physique, c'est different

  3. #3
    Clicker Fusion 2.5

    Join Date
    Jan 2018
    Posts
    197
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    un peu comme ça?

    courbes.mfa

  4. #4
    Clicker Fusion 2.5
    Tobias_Edvardsen's Avatar
    Join Date
    Jun 2015
    Location
    Drammen, Norway
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by fredetmumu View Post
    un peu comme ça?

    courbes.mfa
    Not exactly. I need the curved line to be updated continuously at all time. I'm not sure this is achievable by pasting the point object into background. In your example, would you be able to make it so the line is formed continuously while holding down the left mouse button?

    Best regards,
    Tobias Edvardsen

  5. #5
    Clicker Fusion 2.5

    Join Date
    Jan 2018
    Posts
    197
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    courbes 2.mfa
    comme ça ?

  6. #6
    Clicker Fusion 2.5
    Tobias_Edvardsen's Avatar
    Join Date
    Jun 2015
    Location
    Drammen, Norway
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by fredetmumu View Post
    courbes 2.mfa
    comme ça ?
    This solution is applicable for my purposes! Thank you for helping out!

    Best regards,
    Tobias Edvardsen

Similar Threads

  1. Replies: 8
    Last Post: 26th January 2018, 11:16 AM
  2. Drawing a line from A to B
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th May 2010, 11:36 PM
  3. Line drawing
    By Sigvatr in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th April 2008, 02:50 PM
  4. Drawing line.
    By Roseweave in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 12th March 2008, 11:16 PM
  5. drawing a line
    By delusan in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 8th June 2007, 07:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •