User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Interact with drawn lines

  1. #1
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Interact with drawn lines

    I want a boucing ball to bounce off a line drawn at runtime. how cn i do this??

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Interact with drawn lines

    how do you draw the line? using the draw object?

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interact with drawn lines

    i was looking for any extension that would allow me to do it. so far i have tried Line Surface and Overlay Redux. I can draw lines with both these but neither will allow me to bounce a ball off them.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Interact with drawn lines

    Maybe this could be of help, or atleast give you a start.

    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interact with drawn lines

    That will only allow me to scale and stretch in straight lines. i want to be able to create freehand lines.Thanks anyway

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interact with drawn lines

    Well you could have an active object called brush that is circular and is the width of the brush you want and a second active that always follows the mouse. Then insert the code:

    -Always
    +Mouse Active: Set x position to XMouse
    +Mouse Active: Set y position to YMouse

    -Repeat while left mouse button is pressed
    +Create: Create Brush Object at (0,0) of Mouse Active

    This will create a little brush dot at the mouse while the mouse button is held down. This way you can draw lines and shapes which you can then test for collisions with.

    I'll throw together a quick example.

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interact with drawn lines

    EXAMPLE HERE -------> http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=88062#Post88062

  8. #8
    No Products Registered

    Join Date
    Apr 2008
    Location
    Miami, Florida
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interact with drawn lines

    The only problem with that is that it doesn't work if you move the mouse fast.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Interact with drawn lines

    The easiest way to prevent gaps, as InsertNameHere said, is using the 'move safely object'. (Well, there are other ways using advanced math etc., but as I said.. EASIEST way)

    I made an example how to use it, it's a modified version of GerbleGod's one.

    http://www.wikiupload.com/download_page.php?id=30288

  10. #10
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Interact with drawn lines

    No, you can just do:

    Always: Set pos of "Black Dot" to ymouse and xmouse

    Repeat while left mouse key is clicked: Animation> Paste image into backdrop (Obstacle)

    I hope this helps!

    EDIT: I just saw gerble's example. He did the same thing. I dont know how to fix the gaps though.

    EDIT 2: I just saw Looki's "How to fix the gaps" post. Lol I should read the replies before I do! :blush:

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Interact with Command Prompt
    By GrimFusion in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th September 2011, 09:05 PM
  2. Get Main Volume to interact properly with sample
    By mrmdesign in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 18th July 2011, 11:20 AM
  3. Can you interact with windows that aren't in focus
    By dudeman129 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th June 2010, 10:16 PM
  4. How to interact with MMF objects from LUA?
    By uprize in forum Lua Scripting
    Replies: 22
    Last Post: 13th September 2009, 03:47 AM
  5. Deleting lines/shapes drawn in Overlay Redux?
    By Taofeld in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 28th September 2007, 01:16 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
  •