1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

GM:S 1.4 It's me and counting again

Discussion in 'Programming' started by mafon2, Apr 26, 2017.

  1. mafon2

    mafon2 Member

    Joined:
    Sep 13, 2016
    Posts:
    18
    [​IMG]

    Hello,

    Down with stacking (you can download it from here, btw: https://yadi.sk/d/_-RdIMGe3Gnxm8 (controls: arrows, space, R)), now I'm making color matching game. And I need to count blocks again, but this time I want to count all adjusted blocks, so for example, if there are 5 or more blocks adjusted, you get a bonus or something. Or you can destroy some blocks only if 5 or more adjusted. The possibilities!

    Ok, what I came up with:

    when we click on a block, the game starts to create instances on top of adjusted blocks of the same name and then counts this new instances (and then destroys them).

    And that's fine, I guess.

    But this doesn't allow the game to count all the separate groups of blocks on the field. Like if it wants to highlight the biggest group that brings the most points.

    counting blocks.gif

    Any suggestions (easy solutions)?
     
  2. Code might be helpful to see what you are trying to achieve so we can help you with your game and its problems.
     
  3. TheouAegis

    TheouAegis Member

    Joined:
    Jul 3, 2016
    Posts:
    7,125
  4. mafon2

    mafon2 Member

    Joined:
    Sep 13, 2016
    Posts:
    18
  5. TheouAegis

    TheouAegis Member

    Joined:
    Jul 3, 2016
    Posts:
    7,125
    Since you're using Studio, even though that post was written back when Studio had some annoying bugs, make sure you read the full thread just in case some of the issues Studio users had with it are still present.
     
  6. mafon2

    mafon2 Member

    Joined:
    Sep 13, 2016
    Posts:
    18
    to be honest, it's hard for me to swallow. As stated in text: «this is real programming». So I'm off with my "meets_instance()". I know, I know, you can't get anything without the effort, but for now I'm not interested in programming this much. At least, game maker crutches are working.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice