MangoPolo's Forum Posts

  • It is not about Setting a string, but Adding a value. I am doing math there... Array is a much better solution, but I will have to confess I am a total incompetent in them. I am working on a project now and want to finish it's first version in any way. After that I am planning to study the Array functions and simplify my work. But the start doesn't allow me to pause now... I am just a learner now.

    Here is the simple capx with a meaningful explanation:

    drive.google.com/file/d/0B09lLdP7JoIAZFY4clA4V1lRV3c/view?usp=sharing

  • I have a global variable where certain numbers and texts are added from different actions like:

    Set Global1 to Global1&object1.name&object1.points&object1.weight etc...

    In the global they show up like this:

    NAME 12 50

    When I create an action like:

    Object2.points Add to Object1.points no changes happen Object1 values from the Global1.

    Another set of actions are like that:

    Add Object1.points to Global2 and It is working good. Numbers are calculated as totals. But how do I make them to be added to the first global as well? They do not add... How do I make math work on values already written in the 1st string? without having to reset it...

    In simple words, how to add a value to an instance variable who's value is already in a string and make this change in that value in the string , not only to the object in general? I just need to keep their order, during adding values, that's why I am asking such a thing...

  • Oops..weird... When I did this myself it inserted a "nothing"instead of space, that's why I asked it here I thought JavaScript doesn't recognize such command )

    thx

  • I know &newline makes it a new line in the string. How to put a space between two words/values?

  • Thank you! I should get into this manual more deeply!

    Respect!

  • I made an event like this:

    if - Object1-Compare to X=236pixel make Object 2 Clickable ( boolean )

    When screen is sized to 4:3 somehow Object1 loses it X position, though it has Anchor behavior. Is it somehow related to Parallax? Can an object change it's position even if it is Anchored?

    What triggers should I pull/push?

  • I've made it! Thank you for your suggestions!

  • I finally understood the logics and made it! Thank you!

  • I understood the first half of your idea, but cannot realize the fact how to check the clickable variable.

    Can you look at this example and put a light on my errors please? I would be very thankful! I did the first half. Now I am stuck...

    I want buttons be unclickable while x2 is pressed. capx:

    drive.google.com/file/d/0B09lLdP7JoIASWZ2UDBMM1kxM3c/view?usp=sharing

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have multiple texts which have button roles. I need to make each of them untouchable/unclickable time by time. I know how to do this with sprites ( collision-disable) . But how to make it work on texts? Also, I will need an action to make it clickable again, when needed. Can anyone help me out?

  • If I write Blue. point+Red. point+Green. points, they all add at once. But I want them to be added only when placed on screen. What would be the right command?

  • I know about the native expressions:

    + (addition)

    • (subtraction)

    * (multiplication)

    / (division)

    But how do I make only the selected objects to be summed(added)? Those which are already placed on screen only. ANd also, if one object will be removed, I need to know how to subtract it's value from the total sum.

  • I have this mini .capx example of objects placed on screen when buttons are pressed. Each object has a number variable which will be added to the value of another previously added object's variable. Each time I press the specific button, number is added, but when I add the second object, value of first object is replaced with the second object's value. How do I make them to sum when selected, and not replace each other?

    drive.google.com/file/d/0B09lLdP7JoIAZ1hHYjFlRms4OXc/view?usp=sharing

  • it should work this time, thank you for a reply!

    drive.google.com/file/d/0B09lLdP7JoIAUmNLWVlGRllBRXc/view?usp=sharing

  • I have these events in the next order. They care about showing the update dialog and button to refresh the page after it was downloaded. Since I continue adding stuff and events to my project, these updating events are not showing up anymore. I have 3 layouts, one as intro and 2 of the game. These update commands are put in a separate event sheet, which has actions only for the intro layout. What could be the reason they show only sometimes, and only on Firefox? And why Chrome keeps showing the text even after the update has finished downloading? You have to refresh manually, in comparison with Firefox.

    Do you know a way that this kind of element work flawlessly? My game requires very frequent updates so people will get really confused when they will get such bugs just because the update was not applied in their browsers...The whole game starts with the first layout and this events

    here's is the event sheet:

    drive.google.com/file/d/0B09lLdP7JoIAUmNLWVlGRllBRXc/view?usp=sharing