Get color at pixel

0 favourites
From the Asset Store
Gather the balls with the same color and earn as much score as you can!
  • Pretick is the very next spot we can run code after the game draws, and since C2's snapshot runs right after a draw, this will get you pretty close.

    Best I can tell telling the runtime to redraw before using imageUrl is needed. The snapshot function does this and I recall it not working if we don't.

    By boolean I mean something you'd add to your code. Something like this:

    action()

    {

    this.grabcanvas = True;

    }

    pretick()

    {

    if (this.grabcanvas)

    {

    this.grabcanvas=false;

    ...

    }

    }

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Wow okay, I think I can actually stay logged in for real this time.

    Thanks for the information.

    Sorry for the delayed response. I kept getting taken to the login page after every button click or page change, and couldn't get to any part of the forum interface that would let me post without asking me to log in again. This is the 3rd time I've typed this message up.

    I checked the "Keep me logged in" box last time, so here's hoping it posts this time.

    [update]

    Okay it worked.

    Maybe something is set up weird in my browser because if "Keep me logged in" is unchecked on this site's login page, it goes into "log me out the instant I do anything" mode.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)