Nhdeitmers's Forum Posts

  • Thanks for the feedback!

    I had an idea which is using the string to look up an index in a 2D array.

    So the Menu item would show "apples" and in my array I have a list of the menu item strings running down the Y direction where I look for Array.IndexOf("apples")

    Now I ran into a different problem, though.

    When I try to refer to menuItem.text I get inconsistent results. (Which I posted in another thread)

    But it's probably hard to help without seeing the event sheet.

    Facts are: I have a text object "Talk" that I use to display values at runtime. Every time the menu items come to a halt I pick the middle menuitem by comparing X and set Talk.text = menuItem.text

    Now this works great for all instances of menuItem except for the original that created the others and the first of it's creations. (So they are the first two items in the menu)

    Talk remains empty when either of those two are picked.

    When instead of the "set" action I use the "append" action it works. When I append menuItem.text&"!" I get "apples!!" (while the other instances produce "apples!" as expected)

    This behaviour remains consistent going back and forth or in a circle in the menu..

  • Sorry for the cryptic description.

    I have a weird issue with a number of text instances that get created by a loop.

    So in theory they should all be the same.

    Now the weird part: The one instance that existed before and served as the example to copy the properties from as well as the first instance created by the loop respond differently when I try to use their .text property.

    When I refer to it by setting another object's text with the "set text" action all instances show their text, but for the odd two I get a blank result..nothing.

    When I use "append text" instead, the result is like it should be. Their texts are appended.

    When I append their text&"L" I get their textLL (two times the added string), which is beyond my comprehension.

    I know this is probably not enough information, but if someone has hunch you would make my day ;)

  • Ahh yes, I remember getting confused by this when I first transitioned to C3. Nowadays I wouldn't even think twice about how to access the editor.

    Haha, that’s what I’m hoping to say at some point ;)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a million, oosyrag, I appreciate it!

  • I have menu that consists of text.

    Based on the selection I want to fill an array with specific content (from other arrays)

    Is there a way to use the string names of the menu items to refer to a specific array?

    The only way I can think of is manually.

    If menuItem.name="Test1" then read from Test1.At(0)

    How would you do something like that?

  • Ah, ok, cool. Thanks for clearing that up!

  • You do not have permission to view this post

  • Thanks, that makes good sense. I guess I was simply looking at it from a beginner's perspective, or let's say from an artist's perspective rather than a developer's. I understand that arrays are more flexible and will be used dynamically, which is their strongsuit after all.

    The necessity of the ajax plugin and the use of the request and load actions is slightly more complex than I like it, but I can see how this makes sense for more experienced users.

    Beginners would probably appreciate something like a simple action for the array to directly load the json file, or even to be able to drag and drop the json from the files folder onto the array object in the project bar..

    The documentation on this is seriously lacking in my opinion. The editor is a feature advertising the paid plan. But I wasn't able to find a proper tutorial or any mention of the ajax.last data expression. When you're new to Construct and there's no explanation given, it's almost impossible to figure it out without some Youtuber walking you through the steps. :/

  • Hm, Ok, I don't understand what parsing is, but I'm happy to hear that I can apparently store lots of values without any issues.. Thanks! :)

  • I'm curios as to why the array editor works the way it works.

    At first I couldn't even find it, and searching the forum showed that someone else had the same troubles before.

    I assume most users expect the editor to open up on any of the array objects in the project bar, as those are the ones we are using and the ones we would like to edit.

    Having to create a new files in the files folder in order to open the editor and then not still not being able to use the entered values right away without loading them somehow is not exactly intuitive.

    I'll probably get the hang of it, but I was kind of disappointed to learn about this clunky workflow.

    Ideally this is something I would like to happen "under the hood", so I can just right click and edit an array object, just like any other object and access the array without further steps required.

    Is there a technical reason for this?

  • Thanks for hearing me. :)

  • Hi.

    This may be a naive question, but..

    what is the impact of arrays on data volume? My project is based on data like musical scales in tons of variations and will store user input data, mostly reaction times, multiplying the number of entries exponentially. Might that be an issue at some point, or is the data volume of arrays small enough to not really matter?

  • Cool, thanks. I’ll check it out!

  • Hm, something of the sort. I figured it out.. move was triggered more than once. So the longer the swipe the more often it would be triggered, adding tiny movements before the final move.

    Thanks, it helped to talk about it :)

  • Thank You! It's different from what I have in mind, but I'll take some time to see how it might relate to what I'm trying to do.

    My question was more about how to do the specific coin flip effect. Would you use containers or layers or how complex would it be to make a screenshot and use that as a new sprite on top of everything etc..