Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] GetColorPoint(x,y) - ???

Author
Message
pavel_sv_1982
9
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 10th Aug 2022 10:48
Hello. Please remind the team that takes the color of a point on a 3d or 2d screen.
And then I dug up the whole help, I can’t find it. There is only to determine the color.

Thanks.
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!

The author of this post has marked a post as an answer.

Go to answer

Steve Ancell
16
Years of Service
User Offline
Joined: 16th Feb 2006
Location: Brighton, East Sussex, UK
Posted: 10th Aug 2022 16:59 Edited at: 10th Aug 2022 17:01
GetColorBlue doesn't get a color from a screen position, it just gets the blue component property from a color that's been mixed and stored in a variable.
I hope my explanation will suffice.

pavel_sv_1982
9
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 10th Aug 2022 17:01
yes, I already understood that I would have to somehow get out and save the land map.
Thanks.
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!
Steve Ancell
16
Years of Service
User Offline
Joined: 16th Feb 2006
Location: Brighton, East Sussex, UK
Posted: 10th Aug 2022 17:08 Edited at: 10th Aug 2022 17:09
GetSpritePixelFromX and GetSpritePixelFromY may be what you're looking for.

P.S: I'm not sure if there's an equivalent for 3D objects.
Virtual Nomad
Moderator
16
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 10th Aug 2022 17:10 Edited at: 10th Aug 2022 17:13
This post has been marked by the post author as the answer.
i think this is what you're looking for: https://forum.thegamecreators.com/thread/216843#msg2581485

from that, these hold the RGBA values respectively:
pavel_sv_1982
9
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 10th Aug 2022 21:37 Edited at: 11th Aug 2022 11:02
Virtual Nomad wrote: "i think this is what you're looking for: https://forum.thegamecreators.com/thread/216843#msg2581485"

Thanks. now I can solve the problem of a UFO falling on the ground or in the water.

I did not understand how I could not guess what the topic was called. If I knew, I would not create these idiotic topics. And the answer was given a long time ago.

programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!

Login to post a reply

Server time is: 2022-09-25 09:43:00
Your offset time is: 2022-09-25 09:43:00