nico_pons's Recent Forum Activity

  • I'm trying to figure out functional code for my students game.

    My goal is to eventually create a game where I can click on a fruit, and a for loop can check through each fruit adjacent, and determine whether or not it matches.

    If it matches, and there are more than 2 matching fruit in a chain, then destroy all fruits that are in the chain.

    What I'm trying so far, is to manually select fruit and check if all fruit in that selection match. If they do match, and they are right clicked, delete all the matching fruit. How would I manage just this?

  • thank you guys so much for the explanation, this definitely makes one part of my puzzle a lot simpler to code!

    There's one part that still stays confusing for me which is the activation of each light. Part of my puzzle is that a light will activate itself plus the next light instance in order. For now I just have it hard coded

    Would there be a solution to have it turn on self and (self)+1?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I checked up on the documentation for family properties, but I still have some questions.

    I am trying to make a simple puzzle where turning a light on adds 1 to a counter, and turning a light off removes the addition from the counter

    I have a master event that sets the total lights value to be each light's value manually (Light1.value+Lightx.Value-etc.)

    Does anyone have better ideas for a system to check through each light and do this without recoding it every time? I can imagine making a puzzle with 10 lights will start making this process annoying

    Is there a check every instance in this family type of thing? I've had problems earlier with incorrect addition when I've tried other methods.

    I have it working right now but I just want to be more efficient about it.

    Alternatively if this would work better with another system I'd love to hear about it.

    Code to start process

    Code to set values

    Code to add values together to global variable

    Tagged:

nico_pons's avatar

nico_pons

Member since 28 Oct, 2018

None one is following nico_pons yet!

Trophy Case

  • 6-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies