User Tag List

Results 1 to 2 of 2

Thread: Trouble with Object Detection and Update

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Trouble with Object Detection and Update

    Please see attached my Bell Curve game.

    I release balls (1 a second) at the top and they pinball down a grid and finally come to rest on a set of chart objects taken from the MMF2 library.

    All good so far.

    When a ball "Stops" it overlaps a chart object. So I want the "counter" to be increased by 100 so the bar starts to grow, and the ball would be destroyed.

    But no matter what I do I cannot get MMF to do it properly.

    I cannot get the game to select the proper chart object.

    I tried

    +if ball is stopped
    +if ball overlaps chart object
    -increment counter 100
    -destroy ball

    I have tried looking and comparing x locations on each ball and the chart objects.

    I have tried adding "only one action when events loops"

    Still no good. You can clearly see the ball and chart object overlaps but only the first chart object seems to increase.

    Could someone look at the code and see if you can see what I am doing wrong?

    At start of frame I build the grid and row of chart objects. I disable the "build a grid" events when done.

    Then I start the balls bouncing and I detect when they stop at the bottom.

    Thanks, any suggestion helpful.

    Additional Note: Another issue is if you let the game run for about 5 minutes you will see the pinball movement stops and the balls do not detect they are passing over each other.
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    You can cancel this request. I found that if I created active picture object that is invisible over the chart bars then I could use that object to interact correct with the balls and be able to then pick the right bar to update. I had to make several other changes but now the bell curve is forming.

    Here are some things that I am still puzzled on in regards to this program and MMF:

    1. I have an event that if the ball tries to leave the client area ...top, right side, left side or bottom then it should bounce if its speed is high enough or it should stop and be destroyed. I also check if the ball is getting close to the side of the window and it should bounce.

    Problem: Some balls get stuck at the bottom and vibrate out. Some ball just do not get detected and fly right out the bottom. Bottom line...ha...the bottom area of the screen causes problems.

    2. I am creating and destroying balls in the game, but in counting the number of balls created, I notice that after about 2000 balls are generated (remember some are being destroyed) the program begins flooding the screen with balls. Takes about 10 minutes or so for this to happen.

    3. The pinball movement causes balls to bounce or bias to the right. There is not an even distribution of balls to the right and left as it should be.

    Any suggestions welcome.

Similar Threads

  1. [Request] Voice detection object
    By Hristos in forum Extension Development
    Replies: 63
    Last Post: 29th June 2014, 12:16 AM
  2. Android Object - Online detection
    By Kisguri in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 14th December 2011, 08:11 PM
  3. Object Cluster Detection
    By LB in forum File Archive
    Replies: 0
    Last Post: 1st May 2011, 02:29 AM
  4. Trouble with Update
    By legocacher in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th July 2010, 04:44 PM
  5. Object detection related.
    By BlueFrenzy in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 23rd July 2008, 10:56 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
  •