shirokuma's Recent Forum Activity

  • Plonk

  • See if this gets you started.

    The bullet had a bullet behavior added to it.

    The weapon has an instance variable called ammo that starts with a value of 10.

    When you press the space bar a bullet is spawned from the weapon and 1 is subtracted from the weapon's instance variable of ammo.

    A condition of firing when you press the space bar is that the weapon's instance variable ammo must be greater than 0.

  • 7Soul

    You must be running the Beta C2 as I'm not able to open your file, so I'll take your word for it that your's works better.

  • Does this work as a starting point? Use the left and right arrows.

    I just made a little modification to the file, so if you downloaded it before you might want to try again.

  • An Instance Variable is a variable that is tied to an instance of an object. So you could create an object call Monster and give it an instance variable of Health. If you place multiple copies of that Monster object on the layout they are instances of Monster, each with their own Health.

    An Array is kind of like a box that is divided up into compartments to hold things. The default Array is divided up into 10 compartments numbered (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). So to set a value in the 3rd compartment to 20 you would apply an action on the Array to Set value at (2) to 20. The (2) represents the 3rd compartment because the array index starts at 0. You can also have a multidimensional Array. So you could divide that same 3rd compartment up into 8 compartments. So to set a value of the 6th compartment of the 3rd compartment to 50 you would apply an action on the Array to Set value at (2, 5) to 50. In Construct 2 the dimensions of the Array are referred to as X, Y, and Z. In my above example the "Z" would happen if you divided that 6th compartment up into additional compartments. This seems like it could be getting confusing, so I'll stop and see if you are following what I'm saying.

    Found this:

    https://www.scirra.com/tutorials/307/ar ... -beginners

    A Dictionary is a set of key/value pairs. So you can have a key of "Tom" and set its value to 30. The key is similar to the Array compartment index value. In the Array example above we stored a value in the 3rd compartment. In the dictionary we store the value at compartment "Tom". In a Dictionary you have no control over the order. So if you had Dictionary with keys for "Tom", "Dick", and "Jane" you have no idea which one comes before the other. I haven't tested it in C2 but in Python it is considerably faster to access data stored in a Dictionary compared to an Array.

  • Juryiel

    Darn it! Now I have Peter Gabrial's "Shock The Monkey" going through my head again. (Not that I'm a sore loser.)

  • I don't have an answer to your first question. There is though this tutorial about supporting multiple screen sizes.

    https://www.scirra.com/tutorials/73/sup ... zes/page-1

    As for your second question. The dotted line represents your window size, or in other words it represents the area of your layout that can be seen while your game is running.

  • Tom

    When is the "I have Stock in the Company" badge coming?

  • Plonk

  • So if we haven't already earned the "Contender" badge will we get it for entering this competition? Or will we only get the "1 Million Day" badge?

    "There is no such thing as too many badges"

    -Tom

    https://www.scirra.com/blog/63/how-we-g ... ur-website

  • It's in the manual:

    https://www.scirra.com/manual/78/expressions

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It sounds like you want to set the text to "the variable is: " & varX

    So each time you call this the varX will be replaced with the new varX.

    Is that what you are trying to do?

shirokuma's avatar

shirokuma

Member since 8 Mar, 2014

None one is following shirokuma yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies