SoldjahBoy's Recent Forum Activity

  • It's not working because (probably) your variable will never equal 1 when clicked... since it's adding 1 to itself making it 2.

    Do you always want to go left then right, then left then right again? Can you go left, left, left, right maybe? Or can you go right then left?

    ~Sol

  • ANCIENT ALIENS!

    ~Sol

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can also have a compare condition, is timescale greater than 0. Adding this condition to your controls/inputs will mean they only work if timescale is not at 0.

    ~Sol

  • Did you get it working?

    Learning how to do it is the best way! A lot of people ask for capx to be made for them, so it's refreshing to see someone actually working through it.

    If you're still stuck, post your capx here and I will take a look at it

    ~Sol

  • It's an expression, so it will need to be used in something like "compare two values" or "is between values" which are system conditions.

    loopindex will reference the current loop being run, so if it's a sub event to your loop (or used as an additional condition or action expression) then it will not need any reference to which loop.

    In your condition simply go to System -> compare two values and in the top box just type in loopindex and then set "is equal" and in the bottom box put 48 or 49 depending on your loop starting position.

    ~Sol

  • I used it to have an object on a non-parallax layer to exactly follow another object which is on a heavily parallax layer. I think this would be the most common/simplest usage.

    ~Sol

  • You could have a sub event in the loop that compares the loopindex to see if it has hit 49 yet - then call your action to reset your variable.

    System -> compare two values

    [Main loop is here]

    ---[loopindex = 49] (or 48 if you've used a 0 based beginning to the loop)

    ------ set global.variable to 0

    ~Sol

  • This is a very broad question and impossible to answer properly without more information.

    What sort of sport game is it? Do the players need to maintain some kind of field position? Is there a field at all? Is your sport game based on a realism, or is it a fantasy sport game?

    More information about your game would possibly be beneficial to getting a good answer.

    ~Sol

  • No problem!

    ~Sol

  • You can also use str() to fill a dictionary with int values...

    For my map system, I use:

    MapDictionary.Get(str(loopindex-1))

    The values for the map tiles use numbers for some values, and strings for others. Using str() will populate numbers into the value field without any problem.

    ~Sol

  • There's a few ways to do this depending on how you want the effect to look.

    Typically you can either use a tiled background object and just "stretch" it to the size you want... or you can use a sprite with animation frames showing the progress bar at various positions - then set the animation frame based on the progress percentage.

    I have little interface "bars" for my current project to show player health and hunger levels, etc... I use a tiled background and set the width to; (bar.width/100)*player.hunger

    ~Sol

  • Yes, search functions are possible... but I think perhaps only with NWjs?

    I've used C2 with NWjs before to make some Point of Sale (POS) software - which has a search feature to find products in the database, or customer information etc.

    I'm not entirely sure if any search can easily be done without using NWjs, though I'm also probably wrong about that. lol

    ~Sol

SoldjahBoy's avatar

SoldjahBoy

Member since 2 Apr, 2008

Twitter
SoldjahBoy has 3 followers

Trophy Case

  • 16-Year Club
  • Email Verified

Progress

17/44
How to earn trophies