User Tag List

Results 1 to 3 of 3

Thread: Drawing a line that bounces off obstacles?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    BiznessMan's Avatar
    Join Date
    Apr 2007
    Location
    Sandy UT
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drawing a line that bounces off obstacles?

    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


    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

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,821
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)
    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.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    - 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.

Similar Threads

  1. Help searching the forums: Drawing Obstacles file
    By rubes in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd February 2013, 01:54 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, 10:36 PM
  3. Line drawing
    By Sigvatr in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th April 2008, 01:50 PM
  4. Drawing line.
    By Roseweave in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 12th March 2008, 10:16 PM
  5. drawing a line
    By delusan in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 8th June 2007, 06: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
  •