delta
Contributors
Posts: 29
|
Post by delta on Jan 10, 2021 0:47:03 GMT
waitTime = 10
if(Image:R(shinyRegion):exists("shiny.png",waitTime)) then
I feel like the waitTime passes to fast for this if statement, I am trying to search for a image that is bouncing a couple of pixels, would this be the best way to do it?
Thanks
|
|
|
Post by Exilereven on Jan 10, 2021 1:47:32 GMT
waitTime = 10 if(Image:R(shinyRegion):exists("shiny.png",waitTime)) then I feel like the waitTime passes to fast for this if statement, I am trying to search for a image that is bouncing a couple of pixels, would this be the best way to do it? Thanks that is because AnkuLua will always try to find image fast as it can. what your wait time is doing, is making it search for the image ATLEAST wait time long of an amount. but if it finds it sooner it will return match, but if the image is not found for ATLEAST your wait time like 3 seconds then it will move on. exists('img.png',0) would only try and find the image once. exists('img.png', 7) would look for that image for ATLEAST 7 seconds OR until it finds it. make sense?
|
|
delta
Contributors
Posts: 29
|
Post by delta on Jan 10, 2021 2:30:43 GMT
waitTime = 10 if(Image:R(shinyRegion):exists("shiny.png",waitTime)) then I feel like the waitTime passes to fast for this if statement, I am trying to search for a image that is bouncing a couple of pixels, would this be the best way to do it? Thanks that is because AnkuLua will always try to find image fast as it can. what your wait time is doing, is making it search for the image ATLEAST wait time long of an amount. but if it finds it sooner it will return match, but if the image is not found for ATLEAST your wait time like 3 seconds then it will move on. exists('img.png',0) would only try and find the image once. exists('img.png', 7) would look for that image for ATLEAST 7 seconds OR until it finds it. make sense? Even in the if statement? Im asking because I am timing it when it should not find it(image not in screen). and its lasting about 3 seconds when It should last the waitTime of 10 seconds no?
|
|
|
Post by Exilereven on Jan 10, 2021 2:37:49 GMT
would you mind posting code or contact me in message so I could take a look for you. I what your saying seems kinda funny so let's look at the code.
|
|
delta
Contributors
Posts: 29
|
Post by delta on Jan 10, 2021 22:32:34 GMT
would you mind posting code or contact me in message so I could take a look for you. I what your saying seems kinda funny so let's look at the code. It seems to have fixed, or maybe I hadn't updated the script yet , but its working as it should now, thanks for the offer though!
|
|
|
Post by Exilereven on Jan 11, 2021 5:28:28 GMT
would you mind posting code or contact me in message so I could take a look for you. I what your saying seems kinda funny so let's look at the code. It seems to have fixed, or maybe I hadn't updated the script yet , but its working as it should now, thanks for the offer though! glad to hear just simple fix, let me know if you need anything. good luck man.
|
|