jordi82's Recent Forum Activity

  • Yes, in the end, I’m organizing myself with layers, and although I can grasp the main aspects of your explanation, I don’t know how to write code for Construct 3. So, I’ll have to find a solution through events/sub-events, while still making use of containers/hierarchy. Right now, I’m working on creating context menus using arrays, and making them clear and somewhat visually appealing is definitely a challenge... Anyway, thank you for your time!

  • Thanks for the suggestion! However, I think I might not have explained my setup clearly enough. The three sections of the layout (left panel, central area, and right panel) need to display different screens independently of one another. For example, the central area might show the news feed, the left panel could display player stats, and the right panel might show agents—all at the same time.

    To give a better idea, the setup is somewhat similar to how the UI works in Crusader Kings 3, where different parts of the screen can show completely separate interfaces depending on what the player is doing.

    Because of this, using global layers or switching layouts doesn’t fully address my needs, as it seems more suited for situations where the entire interface changes together. Do you have any advice for managing independent sections within a single layout while keeping the UI state manageable? Or maybe there's something about global layers and layouts that I'm totally missing?

  • Hi everyone,

    I'm developing a football management/RPG game in Construct 3, and I'm facing a challenge with managing a complex UI. The main hub of the game has a persistent bottom dock, but the central area is divided into three main sections:

    * A slide-out player info panel (left side).

    * A central area displaying various screens (news, team info, player detailed view, etc.).

    * A right-side area for displaying other game entities (other players, agents, etc.).

    I'm trying to figure out the best way to structure my layouts for organization. My initial thought was to use a single layout with many layers, but I'm concerned about the complexity of managing the visibility of so many layers. Keeping track of which layers should be visible at which time seems like it could quickly become a nightmare, especially as the project grows.

    My main concern is reducing the complexity of managing the UI state rather than purely focusing on draw calls and memory usage, although performance is still a consideration. Any advice or best practices regarding UI organization in Construct 3 would be greatly appreciated.

    Thanks in advance!

  • Perfect, thanks for your help!

    Since I’ll need to work a lot with arrays, JSON, and databases in general, do you have any recommendations for tutorials or resources to improve my knowledge? Thanks again!

  • I have populated an array with the team names and scores, and I am using events to sort the array from highest to lowest score, switching to the second column. However, I'm facing two issues:

    - "Team1" does not appear: Despite setting the team names and scores correctly in the array, Team1 is not showing up in the final output. Instead, I see "Team2" and "Team3" with their correct scores, but "Team1" is missing (I got "NaN").

    - Text Appears in Bold: The text displayed for the leaderboard seems to be in bold, even though it shouldn't be. I haven't set any special formatting for the text, so I'm not sure why this is happening.

    Here's a snippet of my events:

  • Thank you for your suggestion! However, in most sports leaderboards, it's uncommon to see the points listed before the team names.

    I understand that sorting by points as the first column might simplify things technically, but I’m trying to maintain the traditional layout where team names appear first. If you have any ideas on how to achieve that, I’d greatly appreciate it!

    Thanks again for your input! 😊

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone,

    I'm working on a leaderboard in Construct 3 where I store team names and their scores in an array. I’ve already managed to correctly insert the data into the array and display it in a list, but now I’m trying to sort the leaderboard so the team with the highest score appears at the top.

    I’m using a comparison-based sorting algorithm to swap the values in the array, but I’m running into some issues. I’ve set up a loop to compare the values and swap them, but I can’t seem to get it to work properly. Here are the issues I’m facing:

    The leaderboard isn’t being sorted correctly. Some values are duplicated, and the team with the highest score isn’t appearing at the top.

    I’m using a nested loop to compare and swap the values, but I can’t get it to work without duplicating or showing the wrong results.

    I’ve attached an image of my current code. If anyone has any advice on how I can improve this sorting process or what I might be doing wrong, I’d really appreciate it!

    My code:

    What I got:

jordi82's avatar

jordi82

Member since 10 Dec, 2024

None one is following jordi82 yet!

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies