User Tag List

Results 1 to 7 of 7

Thread: Bouncing ball effect

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bouncing ball effect

    I'm making a tennis game and I was wondering how I can make a bouncing ball effect. I'm currently using the Alpha Channel Object , but I don't know how to make the illusion of the ball rising in the air, and then hitting the ground and bouncing back into the air.

    Does anyone know how I can achieve this?

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bouncing ball effect

    Well first of all we'd have to know what perspective you use..

    Top down?
    Side view?
    From behind?
    Isometric?
    3D?

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bouncing ball effect

    Oh right, sorry. It's top down view.

  4. #4
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Bouncing ball effect

    You can easily set the scale to:
    [color:#3366FF]1.0 + abs( cos( <some-value> ) )[/color]

    where <some-value> is 0 when the ball is down at the ground and 90 when it is closest to the camera. You can always add 1 or any other number that looks good to <some-value> and you will get a bouncing effect that just keeps on going.

    If you want to make the ball bounce lower and lower over time, you could multiply the value you add to 1.0 with some value between 0 and 1.
    For example:
    [color:#3366FF]1.0 + abs( cos( <some-value> ))*jumpcoeff[/color]
    You can then alter the "height" of the jump by changing the jumpcoeff value to whatever you like.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bouncing ball effect

    OK thanks. I do have some questions though:

    1) How would you define <some-value> and with what would you define it with?

    2) What command should I use with this expression?

  6. #6
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Bouncing ball effect

    Well just replace [color:#3366FF]<some-value>[/color] with [color:#3366FF]value("MyCounter")[/color] or something similar. Any value you can change is perfectly suitable

    I believe the Alpha Channel Object has a "Set Scale" action or something like that. Otherwise the Active Object in MMF2 has such an action now.

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bouncing ball effect

    Thanks! That wasn't exactly what I was looking for, but I think this effect suits it just fine.

Similar Threads

  1. Bouncing Ball
    By lembi2001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 2nd February 2014, 09:25 AM
  2. Bouncing Ball Bug
    By Teh_Purple_d00d in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 17th July 2011, 12:17 PM
  3. Bouncing Ball
    By Angelfox in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th February 2009, 12:09 AM
  4. Bouncing ball?
    By Iharmi in forum Multimedia Fusion 2 - Technical Support
    Replies: 23
    Last Post: 27th May 2008, 03:36 AM
  5. bouncing ball
    By Higgins in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 25th April 2007, 05:39 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
  •