Voytek's Recent Forum Activity

    Thanks for all the amazing answers, even one from a scirra founder himself, wow! It is an honor indeed and it could be exhilarating if more companies could be mentioned even for the sake of having a look at them and what they do being "intertwined with" Construct, would it also be too much if I wanted to know which https://www.miniclip.com/ have actually been "Constructed"? Thanks in advance!

    I perceive Construct 2/3 as an engine for Indie developers or mini studio developers. Are there any bigger companies using Construct 2/3 to make games?

  • I perceive Construct 2/3 as an engine for Indie developers or mini studio developers. Are there any bigger companies using Construct 2/3 to make games?

  • How do I build a Custom ListBox for Android/IOS, which will display/manipulate a 2D array values? TheC2 ListBox does not work properly when I created an apk with a phonegap.

    I have probably gone through all posts regarding ListBox and developers have had the same/similar issue, which seems like it has not been resolved.

    I have found something I am moderately hopeful of with a capx example:

    scirra.com/forum/viewtopic.php?f=147&t=186515&p=1092612&hilit=list+android#p1092612

    drive.google.com/open?id=0B-xiq ... lFnQlBmU3c

    However, the one above does not allow to manipulate particular values. Does it? Could it be improved to be able to make modifications by clicking the values?

    I like it, because it is concise but it does not have the functionality needed to manipulate the 2D array.

    Then, there is a bit more complex solution. Has it been tested by anyone? Is it the only one workaround? I mean the one at the very bottom:

    scirra.com/forum/viewtopic.php?f=152&t=171925&p=1032344&hilit=list+box#p1032344

    Finally,

    How do you personally go about the ListBox issue for Android? Please note that I need a user to be able to manipulate array values from some UI with a textBox. ListBox comes in natural but it has the known issues on Android/IOS.

    Working examples greately appreciated

  • I would not even think to do it in such a way, that is remarkable!

  • That is exactly what I have been trying to do! Beautiful result korbaach! You are super great! Thanks for letting me learn something new!

    I also assume that there is no other way of representing the array graphically so that the horizontal values could be manipulated from the GUI instead of this one, where “horizontal values” are “frozen” in the list and are not clickable but still the user can delete an entire row and has a sense of what is going on, isn’t there?

  • The pattern i am looking for to display in Construct 2 List, not in a text object, would look like this following your [blackhornet's] example:

    List in Construct 2:

    0: 0,5,10,15,20,25,30,35,40,45

    1: 1,6,11,16,21,26,31,36,41,46

    2: 2,7,12,17,22,27,32,37,42,47

    which appears to be the visual representation of the array from Construct 2 debugMode. In other words, the list contains array rows and their indexes should match, which allows a removal of an entire row both from the list and array by means of array pop. Besides the List in C2 does not work the same as the text object.

    dropbox.com/s/dts3h6hqum4emyn/voytek_2darraySample.capx?dl=0

  • Thank you.

    It is somewhat helpful, however it still prints according to the pattern below

    *

    *

    *

    *

    *

    *

    etc

    Whereas, my array should be printed in the list like so:

    *,*,*

    *,*,*

    *,*,*

    In hardcode it would be something like:

    List: add item: array.at(0,0)&”,”&array.at(0,1)&”,”&array.at(0,2) at index 0

    add item: array.at(1,0)&”,”&array.at(1,1)&”,”&array.at(1,2) at index 1

    etc

    The question is, how to do it with a nested loop in C2?

    It seems a printing pattern is required to display the array like the pattern below but shorter:

    Subscribe to Construct videos now

    I still cannot get it in C2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First of all, I would like to make the following work.

    How do I iterate through my array in such a way that the C2 list displays values according to array’s rows? Like so:

    List index 0: displays: array row 0.

    In other words I want to get:

    Index 0: arrayValueEntered1, arrayValueEntered2, arrayValueEntered3

    Index 1: arrayValueEntered4, arrayValueEntered5, arrayValueEntered6

    Index 2: arrayValueEntered7, arrayValueEntered8, arrayValueEntered9

    Thus all values like in the array but separated by a comma.

    The only working thing I could come up with was to iterate using “For each XY element” but it obviously does not do what I intended.

    I tried to build a while loop since I do not know how many rows there will be and then I nested a for loop since I know that I will have three values in my array in its height. Unfortunately I cannot make it work.

    Thus, can you either correct my looping to achieve the desired effect or add a proper way of iterating to achieve what I am aiming at?

    My secondary question is related to my goal, which is the most accurate representation of the array in a visual way. I chose to use the list but even if the above works, which even now does not at the moment of writing, I still would not be able to precisely change the values, only whole rows. Would there be a more accurate user interface to manipulate the array in the file so that the user could choose particular values to change?

    capx for correction below:

    dropbox.com/s/24hvomvee446x2p/2d%20array%20Iteration.capx?dl=0

  • Thanks for giving me instructions to experiment with. Congratulations on your gaming success! Your game looks pleasantly sophisticated. Keep up the good work for more to come!

  • I would like to have in Construct 2 something that looks like this in javascript:

    var testArray = [["John","Megan","Luke"],["diamond","chess"], ["so", "then", "how"]];

    Then i would like to be able to access the indexed values.

    How do i do that? I tried creating an array and then passing another array as its value but it does not work.

    Eventually i would like the solution to be compatible with JSON and local storage.

  • Thank you for fabulous answers, I really appreciate your expertise assistance.

    A few questions have been asked. Well, I suppose that majority are to let me think more about what I do, there is also one that appears it should be answered on my part:

    [quote:2slt9lcp]Why apply those actions on Sine for EACH object for EACH tick ?

    [quote:2slt9lcp]Why apply those actions on Sine for EACH object

    I actually want to have two sprites with the same random behaviour,

    one a friend and one a folly, the only way to distinguish them

    is not by their behaviour, which changes, but by the way they look. Futhermore, sine

    is supposed to add some action to the game as well as serve as a confusing element

    for the player.

    [quote:2slt9lcp]for EACH tick

    I want my sprites to travel from top to bottom with these behaviours, I suppose the way to do it is in the capx.

    There is one comment/question that I am uncertain whether I get it right. You may clarify if it is of any importance:

    [quote:2slt9lcp]Why try to include that 1 sprite created in the layout and all the weird tricks that go with it ? Just destroy it.

Voytek's avatar

Voytek

Member since 19 Jul, 2016

None one is following Voytek yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies