Results 1 to 15 of 15

Thread: How to find moving objects =/ please help

  1. #1
    Join Date
    Apr 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to find moving objects =/ please help

    I have found a game on a site called 'Freezbee shoter'

    The point of the game is shooting freezbee's that move but they don't have a stable color, the color is different on every freezbee.

    what i wanted to know is is there an function/ procedure to find objects that move and then like save their x,y in vars?(the background doesn't move)

    thanks alot!
    Jaghax FTW

  2. #2
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Doesn't sound too hard to do, except I don't know the game and I cbf trying it (Because i'm tired and sick atm)
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  3. #3
    Join Date
    Apr 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by cycrosism View Post
    Doesn't sound too hard to do, except I don't know the game and I cbf trying it (Because i'm tired and sick atm)
    http://nl.netlog.com/go/explore/games/frisbeeshooter this is the game
    Jaghax FTW

  4. #4
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Read some basic tutorials on color finding

  5. #5
    Join Date
    Apr 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Read some basic tutorials on color finding
    dude, i said that there is no constant color , you're thinking of findcolortolerance but there are like 500 different freezbees there
    Jaghax FTW

  6. #6
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by sleziak View Post
    dude, i said that there is no constant color , you're thinking of findcolortolerance but there are like 500 different freezbees there
    Yes, I tried the game, but it is possible to search for more than 1 color
    Do something like
    SCAR Code:
    cArr := [0, 1, 2, 3] // replace 0, 1, 2 and 3 with the colors.
      for I := 0 to 3 do
        if FindColor(x, y, cArr[i], xs, ys, xe, ye) then
          ClickMouse(X, Y, True);


  7. #7
    Join Date
    Apr 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Yes, I tried the game, but it is possible to search for more than 1 color
    Do something like
    SCAR Code:
    cArr := [0, 1, 2, 3] // replace 0, 1, 2 and 3 with the colors.
      for I := 0 to 3 do
        if FindColor(x, y, cArr[i], xs, ys, xe, ye) then
          ClickMouse(X, Y, True);

    but there are 100+ colors in the game, impossible to find em all

    EDIT:
    i was listed nr one in the game but they have updated the game so the colours of the freezbees are generated randomly, before the update this script worked 100%

    SCAR Code:
    program New;
    var
    x,y:integer;
    begin
    repeat
    If findcolor(x,y,8684774,13,45,584,381) or findcolor(x,y,8709764,13,45,584,381) or findcolor(x,y,14651871,13,45,584,381) or findcolor(x,y,15395450,13,45,584,381) or findcolor(x,y,9428959,13,45,584,381) or findcolor(x,y,14847116,13,45,584,381)then
    clickmouse(x,y,true);
    wait(5);
    until(false)
    end.
    Last edited by sleziak; 05-28-2009 at 09:56 PM.
    Jaghax FTW

  8. #8
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

  9. #9
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    What about only searching for the black color?
    EDIT: I ment the white color.. With a little tolerance of course
    Last edited by Zyt3x; 05-28-2009 at 10:00 PM.

  10. #10
    Join Date
    Apr 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    What about only searching for the black color?
    EDIT: I ment the white color.. With a little tolerance of course
    very smart idea! let's see if it works, thanks!

    Nope there is no true white / black color on the freezbee, only like green and purple ish
    Last edited by sleziak; 05-28-2009 at 10:25 PM.
    Jaghax FTW

  11. #11
    Join Date
    Mar 2008
    Location
    In a cave
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try using GetColorsBox and then do a For cycle for the colors that aren't the background as these are the ones you want to click on
    A Chinese wiseman once said: "Shu ciu!", it was considered very smart, but now people know it means: "Something stinks here!"
    FalBuggySmelter v.1.31
    [Updated on the 1st of March 2010]
    RimmBugger BETA V1.8

  12. #12
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How about finding colors in a box and getting the middle of the TPA to click on .

    Okay this seems hard :<.
    Last edited by Da 0wner; 05-29-2009 at 10:24 PM.

  13. #13
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by bugger0001 View Post
    Try using GetColorsBox and then do a For cycle for the colors that aren't the background as these are the ones you want to click on
    This is going to be your best bet from the sounds of it. Find the color of the background then click where that color is not which will be what you are looking for.

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  14. #14
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I went there and the background is different in a lot of places . There are also moving dolphins.

  15. #15
    Join Date
    Mar 2008
    Location
    In a cave
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dang, went there now...That's a hard one to crack. As there are so many changing objects I'd still try to get the specific colors of the fresbees and look for those then...
    Unless there's like hundreds of different fresbees...In the first level I only saw like 10 different ones :P
    A Chinese wiseman once said: "Shu ciu!", it was considered very smart, but now people know it means: "Something stinks here!"
    FalBuggySmelter v.1.31
    [Updated on the 1st of March 2010]
    RimmBugger BETA V1.8

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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