shirokuma's Forum Posts

  • 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

  • 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?

  • When you start a new project there is a "Demo game: Ghost Shooter (tutorial version)" template that you might want to look at as a starting place.

    This tutorial relates to it:

    https://www.scirra.com/tutorials/37/beg ... onstruct-2

  • I wonder if they are going by the start or finish of the download.

    Oh, Tom said in an earlier post it's the start.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you double click on the object it opens it in the Edit image window. In the Animations window that also opens up select the animation you want to set the speed for. Once you have selected the animation you can set the speed in the Properties window. (It's the main Properties window, there isn't a special Animations Property window.)

    FYI: If you right click on the animation in the Animations window you can select Preview and get an idea what the animation will look like.

  • See if this gets you started. If you touch the ball you can pull a line out from it.

  • It sounds like you want to want to compare an instance variable. You do that as an event and not an action. So add an event, and double click the object that has the instance variable that you want to create a condition from. You should then have an option to "compare instance variable".

  • By "behind" do you mean follow behind or z-order behind the object? Any chance of a capx?