XHXIAIEIN's Recent Forum Activity

  • Ashley I always have to go through a review process when I submit a new suggestion. And I've noticed that if I edit a previously submitted suggestion, it also goes through the review process and the link disappears until it's approved.

    This situation has been going on for 2 months, I remember that he had been working normally before and did not need to enter review. I wonder if my account triggers some spam mechanism of the platform, because I still see new suggestions being posted on the suggestion platform.

    construct23.ideas.aha.io

    PS. Although I think the number of suggestions on the platform is enough, it is time to limit it. At present, there are more than 320 entries in total. Even if you can complete one in 2 days, it will be impossible to complete it next year, haha..

  • You do not have permission to view this post

  • Here's an simple example, you can check mrcgkh answer.

    construct.net/en/forum/construct-3/how-do-i-8/timeline-interactive-story-153884

    ---

    You can make multiple CSV sheet to store different data.

    - Room sheet: contains the 'object IDs' that may appear in the room.

    - Obect sheet: contains the 'event IDs' or interactive for each object ID

    - Event sheet: contains possible triggering events.

  • I look forward to the day when the Hierarchy can set the origin position of the parent object to be passed.

  • <i onclick="clickTrain(17)">Train</i>
    
    <script>
    function clickTrain(x) {
     parent.c3_callFunction("name", ["param1", "param2"]);
    }
    </script>
    
  • Yes. Sometimes I bring my laptop outdoors to work, but I often encounter network connection issues that prevent me from previewing projects correctly. I am certain that the browser has the current version of offline cache because I have been using it normally at home. It's just that when I switch to a different WiFi network outside, it doesn't work properly, which is quite strange.

    There is another issue as well. I am located in China, I frequently face problems Enter C3 editor due to the GFW. I have to use a VPN, but even the stability of the VPN can cause abnormal network connections.

  • You do not have permission to view this post

  • Yes, C3 is supported, and it works great! I often manage my objects this way, and it helps me to sort the same type of objects to show them together in debug layout. because the debug layout does not support object grouping.

    For example:

    I have some form controls, input boxes, buttons, sliders, etc. that I use as Debugger. I will prefix the names with 🎚️ or 🎛️ and they will appear at the top of the list for my debugging. That way I won't see them because they take up too long a list.

  • I made a few examples before:

    - JSON Branch Dialogue System

    cdn.discordapp.com/attachments/225550155531812865/1092398948607598672/JSON_BranchDialogueSystem.c3p

    - CSV to JSON

    cdn.discordapp.com/attachments/225550155531812865/1091824119928078457/CSVtoJSON.c3p

    ---------------------

    And these tutorials from many years ago:

    - Branch Dialogue System Tutorial by Laura

    construct.net/en/courses/displaying-dialogue-games-36

    - JSON dialogue Example by Kyatric

    cdn.discordapp.com/attachments/225550155531812865/1082234761596108800/JSON_dialog_system.c3p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Monster.X = Player.X + radius * cos(angle)
    Monster.Y = Player.Y + radius * sin(angle)
    
  • I made an example of this before, Convert CSV to JSON via JavaScript. You can export as a CSV file in Excel. Then convert to JSON in C3.

    CSV to JSON

    cdn.discordapp.com/attachments/225550155531812865/1091824119928078457/CSVtoJSON.c3p

    Another example JSON Branch Dialogue System

    cdn.discordapp.com/attachments/225550155531812865/1092398948607598672/JSON_BranchDialogueSystem.c3p

    ---

    and save them with their header as Key. if they have the same ID, they are stored as an array.

    ID,Name,Text
    Screen1_Intro,Alice,Hi!
    Screen1_Intro,Bob,"Hi, Alice! How are you today?"
    Screen1_Intro_A1,Alice,That's great! What are you up to today?
    Screen1_Intro_A2,Alice,"I'm okay, What about you?"
    

    Convert to JSON:

    {
     "Screen1_Intro": [
     {
     "Name": "Alice",
     "Text": "Hi!"
     },
     {
     "Name": "Bob",
     "Text": "Hi, Alice! How are you today?"
     }
     ],
     "Screen1_Intro_A1": [
     {
     "Name": "Alice",
     "Text": "That's great! What are you up to today?"
     }
     ],
     "Screen1_Intro_A2": [
     {
     "Name": "Alice",
     "Text": "I'm okay, What about you?"
     }
     ]
    }
    

    Here is the code to convert csv to JSON.

    Create a new js file in the Scripts folder and paste it in. Note that this Script properties need to set the Purpose to 'Imports for events'.

    function csvToJson(csv) {
     const lines = csv.split("\n");
     const headers = lines[0].split(",");
     const result = {};
    
     for (let i = 1; i < lines.length; i++) {
     const currentLine = lines[i].split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
     const obj = {};
     for (let j = 0; j < headers.length; j++) {
     const header = headers[j];
     const value = currentLine[j] ? currentLine[j].replace(/^"|"$/g, '') : '';
     if (header !== headers[0] && value) {
     obj[header] = value;
     }
     }
     if (Object.keys(obj).length) {
     const screen = currentLine[0].replace(/^"|"$/g, '');
     if (!result[screen]) {
     result[screen] = [];
     }
     result[screen].push(obj);
     }
     }
    
     return JSON.stringify(result);
    }

    It's also very easy to use in C3.

XHXIAIEIN's avatar

XHXIAIEIN

Member since 26 Mar, 2016

Twitter
XHXIAIEIN has 11 followers

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x46
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x10
    Lightning Draw First person to up-vote a new Construct 3 release
  • x9
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

20/44
How to earn trophies