User Tag List

Results 1 to 6 of 6

Thread: Wind movement

  1. #1
    No Products Registered

    Join Date
    Jan 2007
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wind movement

    Let's take this example.

    View is top down.

    I have a soccer ball on the field. There are other objects on the field.

    I want to move the soccer ball by controlling wind. So holding down left arrow makes wind blow to the left. Letting go of the left arrow the ball will decelerate from friction. But if I hold up arrow the wind will blow up and the ball will move upwards, and a little left from it's previous momentum.

    If it hits an object on the field, it bounces.

    I've tried several different ways to do this, but it's not working out.

    Any ideas?

    JT

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wind movement

    Use the 8-Directions movement. You can set the acceleration & deceleration to very low numbers for a windy effect.

  3. #3
    No Products Registered

    Join Date
    Jan 2007
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wind movement

    No Good. It doesn't take into account inertia.

    JT

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wind movement

    Sorry. I didn't even test what I said! :blush:

    You might have to make a custom movement. Try giving the soccer ball two Alterable Values named xWind and yWind, added and subtracted to while keys are down. On an "Always" condition, set the X position of the ball to the current X + xWind. Do the same with Y.

    Try something along those lines. If you want me to, I can attempt to make an example.

  5. #5
    No Products Registered

    Join Date
    Jan 2007
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wind movement

    Hi,

    I had tried that, but collision detection (bouncing) off of objects does not work very well using this method.


    JT

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wind movement

    Maybe it will work if you use detectors. Create four actives, each pasted to a side of the ball. If a certain one collides with a wall, you can set xWind to xWind * -1 or yWind to yWind * -1, depending on which detector hit.

Similar Threads

  1. Sway Effect (Wind)
    By darkmanx_429 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th March 2016, 07:12 PM
  2. Platform movement on Active objects using Nifflas' basic movement widget
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th October 2012, 02:16 AM
  3. Spaceship movement left and right trought bouncing ball movement instead 8 direction?
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd May 2012, 09:33 PM
  4. Realistic waving flag / cloth example + wind
    By Anders in forum File Archive
    Replies: 12
    Last Post: 22nd March 2010, 04:32 PM
  5. Koobare's Wind & Snow Tutorial
    By MysteryMan23 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th January 2008, 03:16 AM

Posting Permissions

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