Redturtleee's Recent Forum Activity

  • Thank God. Had the same issue, but this fixed it. Thank you!

  • Nvm. I got it to work.

    Pushing did work but you need to push front, not back. I though pushing back was pushing to a higher value in the array. But counting backwards does go towards 0 so i guess it makes sense. My god, arrays are so unintuitive to me.

  • Sorry it's actually not working. This method always overwrite the first column. I've tried everything I can think of but it just wont accept anything.

    The first solution that seemed obvious to me was to just set the array Y size to +1 first and then just add it to the newly created y row of the array.

    I've tried pushing in the new Y column as well, but that doesn't work either. I'm confused by how complicated manipulating arrays is.

    All I wanna do is:

    1. add new y row

    2. set x values at new y row to the array that is written in the json.

    Why is this so complicated to do?

    Maybe I'm trying to hammer a nail with a screwdriver here. Should I be using using dictionary or something else?

  • Tank you so much! It worked flawlessly. And thanks for giving multiple options as well, I went for 2.

    One question. Why is the "int" required? Are array keys not integers by default?

  • I want the array data at this key

    To be inserted into an array as a new column

    The dimensions are already set correctly

    It adds a new column but all values are set to just 0

    Is the problem that this expression for getting an array is wrong?

    JSON_Dialogue.Get("scene."&Scene_ID&".dialogues."&Dlg_ID&".createWorldActor")

    I tried setting a Test_Text with this expression and it just wrote a 0.

  • Nvm! I ran the test before the .json file had been parsed yet. It found the Key now! Thank you so much!

  • Construct accepted the format, thank you, but it's still not finding the Key.

  • {

    "dialogue":

    [{ "speaker":"xxx", "line":"xxx" },{ "speaker":"xxx", "line":"xxx" },{ "speaker":"xxx", "line":"xxx", "changePose":"laughing" }]

    }

    I wanna ckeck if a path has the key "changepse". What does the path look like in this example?

    I've tried a bunch of ways to type it but Constuct is just not accepting it.

    dialogue.2.changePose

    That's what I'm thinking it would look like.

    This is what I get:

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you guys for the help! I think that what I really needed to understand was the rules of loadouts. Hearing you guys explain that made the answer to what is most optimal pretty obvious. I guess compromising on some aspect are okay in my case since it's a VN, but I just really hate building on something that I know has a scuffed foundation so I appreciate this a lot.

    I will split things up more and lean over to the family functions. This helped me with some other decisions as well actually... Thank you! ^^

  • I'm making a visual novel and I'm at a crossroad on how to set up the layouts and sprite objects.

    Right now I have, for example, 1 sprite named "background" and multiple layouts for each room, each having the background_sprite object placed out. When you go to a new layout/room, the background_sprite just switch to the frame for that room. It's the same for all my assets with similar functions. 1 door, 1 left_character, 1 right_character, 1 UI_Button, etc. All determined with instance and global variables.

    Now, does that mean that the game has to load every frame of every sprite that exist in the layout? Would it be faster for the game if I split up frames into individual sprites that only exist in the the layout in which they are needed?

    Or is it the opposite? Would compressing it even more be what's faster? (Have 1 layout with everything in it, with as few objects as possible)

    Maybe using the Create/Delete object is fastest? 1 layout and then just create objects when needed and the delete them after.

    What makes the game run the fastest?

    Thank you for any help! :)

    Tagged:

  • You do not have permission to view this post

  • Thank you for the tip. I looked around and decided to use json files to write down dialogues. I also decided to just upgrade to construct 3 and remake the project.

Redturtleee's avatar

Redturtleee

Member since 19 May, 2023

None one is following Redturtleee yet!

Trophy Case

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

Progress

3/44
How to earn trophies