MangoPolo's Recent Forum Activity

  • It also displays color and KG. In my project is the same, but the number does not change. This is the main reason such a big thread started

    I am trying to understand the logics of this result.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This container make texts be created each time a new color is created. Yes, I missed this at the first view, now I noticed.

    But even this doesn't clear my mind upon the text appending and other stuff. The only thing I am trying to figure out is what exact event/action changes the sprite.totalweight in Text4. When I understand this, I will be able to accomplish my final step of the project.

    You capx is brilliant.

  • It is 10 times difficult than my technique and when I started implementing yours in my project, I got chaos and texts not showing...

    I dont have functions, loops and object instances...

    But Iam trying to understand what is going on in your capx..

    Give me your e-mail to send you my full capx and you will understand what level of knowledge I have in c2

  • I will try to implement it now in my project. I am very thanful to you, LittleStain .. I will come back with more thanks when I roll out this stuff and see it working.

  • WOW....this looks gorgeous... it is totally different from the tactics I started using, and it is a couple of times shorter...

    And why would you prevent using System;Every tick? What role it has inside this events?

  • The only reason I started this topic, was because, when I first tried to change the value of green.points by adding to it 2*green.points from pressing x2, didn't change anything in the 1st string. This is the only thing I am looking for. The only question I have. What expression to use, to be able to change green.points value ?

    My command is:

    On x2 pressed: Add green.points to green.points

    On x2 pressed gain ( else ) subtract green.points from green.points

    And doesn't change anything! Only to the global2, because there is only math, and one number created by adding all points from all objects.

    But string 1 ( global 1 ) contains name also. in this way: green.name&green.points&green.weight.

    When x2 is pressed, it doesn't add value to green.points. Why? This was my very first question.

    How do I double the value of a variable which is already set to a String? The value of this variable it doubles, in the project, but this change doesn't apply to the string where it's initial value is set. Why?

  • There will be absolutely no difference between the total.points and green.points |

    They both receive the amount which is called bu pressing button. And they both are a number variable of the same object.

    In my project, I have 25 object which will need to be added to this string. Each object has a .name , .weight and .points variables.

    In one string, it is easy, only the total of all added is shown. In another, the total of weight. But each time their name is pressed, they are added into the first string, in the pressed order. A and each time, x2 is pressed, in the last 2 strings, the number is added to the total, and it is very simple. But In the first string, the value before x2 remains, and it is not nice at all. It is confusing. The way you last described, will it have the power to make any change to the value of each element in particular from the first string? The only way that works, is create a global variable for each element and create a different string in front of each name placed in the 1st string.... it is a week of working, and it doesn't seem efficient enough.

    Is there any command, expression or whatever it is called, that can do this? :

    On button press - Add green.points to Global2

    Add ( or Set ) green.points to Global1

    On x2 pressed - Add green.points to Global2 ( creates total of all points of all objects added to this string )

    Add ( or set ) green.points to Global1 only to the green.points variable? Replace it!

    What is the difference between points and totalpoints? Why is it so hard to change a number.variable inside a string? Because it contains text?

    Isn't there any command/expression that locates this number.variable inside the string and changes it to what I say?

  • No, guys, really, I need a small assistance here... please...

    It doesn't work the method you said.

    I changed in first string like this:

    Set name to name&Green.Variable1&points ( points is the global variable where total is created )

    On touched Button1

    String1 = Green; 30; String2 = 30;

    On touched x2 - Add green.points to Points

    String1 = Green-x2; 30; String2 = 60;

    So even if Global points is set as Second text in String 1 , no changes are made to its numbers on touched x2. What is this? I am starting to get crazy...

  • In my string, there is a newline after each object.name. I have the text showing on screen during the game, while words are placed. Also, I send this string to an e-mail. When it reaches, I figure out that between these words, there are only simple breaks ( spaces ) in the email. What do I add in the Set Value besides &newline in order to make line break work in usual exported texts?

  • this looks and works soooo nice!

    thank you!

    now I know even more about c2

  • works great. thank you!

    now I am trying to enter a subevent saying -

    if text is less than 6 set button invisible, but the button becomes invisible exactly after I eneter the first digit. How do I combine these two conditions?

  • I have a text box where digits are required to be entered. A button uses the condition "On text changed" to be created. How do I create a condition for the button to appear only if at least 6 digits are entered in this text box?

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