I believe what you need is a pixel movement script. a quick google search will provide the links you need for one of these.
Thank you FenixFyreX for clarifying that ever so gently.
This site has a lot of scan readers on it. Someone did that to my last post too. Help is only Help if you Help. How can you help if you don't take the time to read.
On with the topic.
color = bitmap.get_pixel(x, y)return color.alpha
Thanks for the response but as you will notice in my first post that is the method I am using. I need to know how to access or check just the alpha value from that.
it returns a value of (red, green, blue, alpha) or whatever. However I do not know how to access just the alpha value from this, I don't care about the other values.
BTW i know I am new to the site but FYI I am in no way new to RM or the RGSS help file. Thank you anyways for the suggestions as I am sure it will be of use to someone else that might read this.
This is more of a "General Ruby" question I believe. I have never had something returned inside of () before and do not know how to extract from it.
If you are looking for the exact value you should use .to_f unless you dont care.
Thank you all very much. I didn't catch the
return color.alphaThank you Cremnophobia for pointing that out. Thank you Vindaca, I knew about that but it does help.
Thanks again all, mod can close this post.
bmp = Bitmap.new(1,1)p bmp.get_pixel(0,0).alpha.classreturns a Float. So it already is a float.