Get color value from backdrop?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi,

    I have a top-down game project where I'm trying to change max speed of an object according to what surface the object is travelling on.
    I would like to achieve this by reading a backdrop pixel colour below the object. Is this possible somehow?

    I'm all ears for better solutions to achieve the same result. Help would be greatly appreciated.

    Thanks!

  • Why cant you just check what kind of background object it's overlapping and change that?

    I think you do a test against the RGB value (getrgb()) but it feels needlessly complicated.

    Please login to see this link.
    Please login to see this link.|Please login to see this link.|Please login to see this link.

  • Thank you for your replies!

    To minimize speed and world building issues I am trying to avoid using separate objects for terrain types because I have a huge world map with complex shapes.
    That is why I had this theory that I could turn the situation around and make the actual moving object to work as terrain sniffer. This logic would allow me to save ton of work and CPU resources in the long run.
    The whole project is designed graphically to support this kind of method. Roads are 1 color, forests are combination of only 3 colors and so on.

    Edited 4 times, last by Wirta (October 20, 2018 at 1:35 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!