Daiz's Recent Forum Activity

  • So basically, at the start of the layout, I have an event that lists the names of .dat files in a folder to a listbox, then I have an subevent that happens immediately afterwards:

    ListBox: 494 For each line
    

    ListBoxSet line ListBox 0 .CurrentIndex data to GetToken(ListBox 1 .LineText(ListBox 2 .CurrentIndex),1, ".")[/code:7y7v5245]

    Basically this should strip every line from the ".dat" at the end of it, but for some reason, it doesn't seem to work. It works if I change "Set line data" to "Add line", so the "For each line" is most certainly run, but it doesn't seem to edit the line data for some reason. Later, when I try to do this (still a subevent to "Start of layout"):

    ListBox: 494 For each line
    System: 0 ListBox 0 .LineText(ListBox 1 .CurrentIndex) Equal to global('language')
    

    SystemSet global variable 'languageindex' to ListBox 0 .CurrentIndex

    ListBoxSelect line ListBox 0 .CurrentIndex[/code:7y7v5245]

    It doesn't seem to work either. I basically want to look for a line that is equivalent to the global string 'language' and set a global value called 'languageindex' to the line number of it, yet it doesn't change the value of 'languageindex' at all. Neither of these events do not work even if I put them as independent events instead of subevents.

    Any help?

    EDIT: Okay, so apparently LineData != LineText. I managed to partially fix it by changing it to LineData, but then it wasn't working when I tried to read the LineData later on. Now, the real question is: Why the heck can you not alter the actual line text?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bumping my own thread with some more stuff...

    Okay, the first thing which has bugged me for quite a while is the fact that when you click a button to hide / lock layer, it selects the layer. This should not happen, as if you're hiding / locking a layer, you most likely won't want to add stuff to that layer. It's a real pain in the ass when I'm working on levels with lots of layers that need to match up, then when I check an upper layer (by making it visible and invisible) the layer selection should stay at the layer I was originally on, not change to the layer I just showed / hid / locked / unlocked.

    Also, you still can't press enter as a keyboard shortcut "Finish" in the expression editor. You can do this for Next, why couldn't you do it for Finish?

  • While Construct is quite a powerful tool, there's a few usability issues that make working harder than it should be. These issues are mainly in the Event Sheet Editor.

    First of all, you can't create subgroups inside groups directly. If you want subgroups, you have to create a group outside groups and then drag it into another group. Not good.

    Another things about groups: Please add a "New event" button to the end of each group! It's incredibly annoying to try create events into right places when at worst you'll have to make them to the end or start of code and then move into the right place or copypaste another event and change conditions. Right-clicking on an event and having a "Insert event" in the context menu wouldn't hurt either.

    Copypasting actions is also working kinda funky: If you copypaste actions into a condition that already has multiple actions, the actions will be always placed after the first action, and not moved to the end of the actions.

    Creating a new event by clicking on the left side of an event and then pressing the "new event" also tends to create the event somewhere where it clearly shouldn't be, like the start or end of the code, especially if you do this with an event that's located in a group.

    One of the most important things: You can't press enter and have it register as "Finish" when creating actions! This is one of the most annoying things in the Event Sheet editor and slows down work a lot.

    Power alone isn't enough if it's a pain in the ass to take use of it, so I'd say focusing on usability issues is quite important.

Daiz's avatar

Daiz

Member since 9 Oct, 2008

None one is following Daiz yet!

Connect with Daiz

Trophy Case

  • 16-Year Club

Progress

16/44
How to earn trophies