User Tag List

Results 1 to 4 of 4

Thread: Bouncing Ball Direction Glitch

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bouncing Ball Direction Glitch

    Hey, I've got a small problem with bouncing ball movement where the object that is moving switches between directions at times. I'm making a game where an object moves to a spot on the screen depending on where the player clicks. So the player clicks, an object is created at that spot to represent the destination and then another object looks in that direction and moves to that spot using bouncing ball. The object that is moving only has 8 directions. If I click in the right spot (I'm guessing a spot that is between the directions) the moving object will flash back and forth between adjacent directions as it moves.

    I tried allowing 32 directions and using the art that I have to fill in the missing directions, but I still get the flashing. Mostly it's just a visual glitch, but once the moving object reaches the destination it will continue to flash between directions for a second or so before deciding it has reached it's destination and coming to a stop.

    Am I doing something wrong? If not, does anyone know of a workaround?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The problem is that even 32 directions isn't enough, since, technically, there are 360 degrees total (not including decimals). There is a tutorial here that should help you to be able to move things in 360 degrees (don't worry about it being about trigonometry, it's highly simplified, so you don't need to know that much math to get things done with it): http://community.clickteam.com/threads/60440-Tutorial-Trigonometry-In-Gaming

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NatureBit - sounds like you're always changing the direction of your bouncing ball to look at the destination. To prevent the 'flashing', just set the direction once before you start it moving. If you're still having problems using bouncing ball, you might find this thread useful:
    http://community.clickteam.com/threads/81145-MoveIt-type-movement-without-extension

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the responses. I actually started by using math to move the object - granted, much simpler math than trig - but I was looking to use the movement built-in to MMF. I tried having the moving object look in the direction of the destination only at the beginning, but then it would sometimes miss the destination mark and keep going off screen. I did find that if I limited the direction change to every 50ms the direction swaps were tolerable. But, again, thanks for giving me some options.

Similar Threads

  1. 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
  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 glitch
    By bmlnr in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 1st March 2011, 06:09 PM
  4. Bouncing Ball
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th December 2008, 07:01 PM
  5. 360 bouncing ball...
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st January 2007, 04:38 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
  •