MangoPolo's Recent Forum Activity

  • NO, I do not get to the point... anyhow! I've tried ten different combinations. The most logical was :

    Add Global.points to Global1 but it just ads the whole number from the second global into the first one, and it is totally not what I am looking for.

    Let me try to ask in a different way.

    So, we do it that way:

    On touched Button1 - Green.points are set to Global1 ( Green; 30; )

    Green points are added to Global2 ( 30 )

    On touched x2:

    Global1 changes to - (Green-x2; 30)

    Gloabl2 to - (60)

    On touched Button2:

    Blue.points are set to Global1 ( Green-x2; 30; Blue; 25; )

    Blue.points are added to Global2 ( 85 )

    On touched x2 under Blue we get:

    Global1 changes to- ( Green-x2; 30; Blue-x2; 25 )

    Global 2 changes to - ( 110 )

    So, what command do I have to insert for the first global to suffer changes in the numbers variables? And become

    ( Green-x2; 60; Blue-x2; 50 )

    I don't believe Javascript doesn't allow such a thing!

    If I create a command like:

    Set to Global1 Global1&Green.points&Global2 it will add after Green.points the total points from the Global2. I need to be added only the called amount....and not be placed after the texts already writen there, but replace the initial number.

    Can anybody write a short code here for the noob of me to understand where I get wrong? Please.

  • pressing x2 doesn't double all the numbers from the Number Global. it doubles only the value of the selected object. Maaan, I am so stuck now )) I hope I will figure it out , as it is the last step of my whole project.

  • I undersrtand the logics... but I can't quite reinterpretate them now... I don't know what actions to use to make Global points be added to a specific object value in another string. I will play now with the events, and try to figure it out...

  • If you could see, I already a second string where math is being performed, with a total of points from pressed objects. But in the first string it is a set of Sprite.names but each followed by it's particular score. And when x2 is pressed under one object, not only it's score is added to the second string, doing the total, but also replaces the value in the first string, of that object. It is not possible?

  • ok, I've played with the period and it worked. Thank you for the answers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sine works fine. And how do I increase moving speed? I tried the built in feature from the Action menu but it doesn't change a thing...

  • Anybody, please?...

  • I have a sprite which is an arrow, pointing to a specific position on the layout. I want this arrow move left and right, 10 pixel left and 10 px right, for a specific time. Until an action destroys it. What recommendation would you give? Custom movement or is there anything simpler?

  • I guess, the first thing for this will be a window inside the app, where you can add HTML code. It's the same as prompted when exporting an project - C2 offers to add a space for external HTML code. So basically,it should be absolutely possible even before exporting, to add such a "window"

  • 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

MangoPolo's avatar

MangoPolo

Member since 25 Feb, 2015

None one is following MangoPolo yet!

Connect with MangoPolo

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies