mikeadamski26's Recent Forum Activity

  • A bit of hyperbole there, as I don't think this is all that bad. Nonetheless, I cannot get this to work!

    Below is a simple test image. I'm simply trying to make a football move forward (or backwards) based on a random interval. That part is working fine.

    The issue I am having is that I want to have my scoreboard update the down and distance to go based on the NetGain variable. The scoreboard starts at 1st and 10, and here is what I'm trying to get to work:

    1) If the random NetGain number is greater than ToGo, then it's a first down! Therefore, I want the scoreboard to indicate 1 for Down and 10 for ToGo.

    2) If the random NetGain is less than ToGo, we simply add +1 to down (max of 4) and then subtract the NetGain from ToGo to show the remaining yardage left for a first down.

    This is something obvious I'm messing up with the ordering of things and an understanding of the Event situations hierarchy. I've read the manual on this section multiple times, but it doesn't seem to align with what I am doing, exactly.

    Thank you for the help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This will be very easy for you, I'm sure, but I'm having trouble with the following:

    What I'm trying to do is:

    1) Move a football icon across the field based on the NetGain variable (that's working fine in this random test setup)

    2) Update to show 1 for Down (textbox) and 10 for ToGo (textbox) if the random NetGain from the mouse click was greater than or equal to the ToGo variable (defaulted to 10).

    3) Similar to #2, but if the NetGain was less than ToGo, it would then add +1 to Down (variable) and subtract the NetGain from ToGo (variable).

    I'm guessing I just have a hierarchy issue or things tabbed in the wrong places.

    Thank you!

mikeadamski26's avatar

mikeadamski26

Member since 29 Jan, 2023

None one is following mikeadamski26 yet!

Trophy Case

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

Progress

4/44
How to earn trophies