XHXIAIEIN's Recent Forum Activity

  • Cheatsheet:

    Level 1

    {
     "name": "Cheems",
     "age": 18,
     "score": 100
    }
    

    return "Cheems"

    JSON.Get("name")
    

    -----

    Level 2

    {
     "team": 
     {
     "name": "Cheems",
     "age": 18,
     "score": 100
     }
    }
    

    return "Cheems"

    JSON.Get("team.name")
    

    -----

    Level 3: Array

    {
     "array": [123, 456]
    }
    

    return 123

    JSON.Get("array.0")
    

    -----

    Level 4: Array

    {
     "team": 
     [
     { "name": "Cheems", "age": 18, "score": 100 },
     { "name": "Marmot", "age": 17, "score": 95 }
     ]
    }
    

    return "Cheems"

    JSON.Get("team.0.name")
    

    -----

    Level 5:

    Note that it does not start with {}, but [] as a JSON array

    [
     {
     "name": "Cheems",
     "age": 18,
     "score": 100
     },
     {
     "name": "Marmot",
     "age": 17,
     "score": 95
     }
    ]

    return "Cheems"

    JSON.Get("0.name")
    

    -----

    Level 6:

    {
     "team": [
     {
     "name": "Cheems",
     "age": 18,
     "score": 100,
     "fruit": ["Apple", "Banana", "Cherry", "Durian"]
     },
     {
     "name": "Marmot",
     "age": 17,
     "score": 95,
     "fruit": ["Apple","Berry"]
     }
     ]
    }
    

    return "Banana"

    JSON.Get("team.0.fruit.1")
    
  • Currently C3 typewriter unable to do this. You can vote for this feature here.

    construct23.ideas.aha.io/ideas/C23-I-24

    This is a way to use len() and mid() to make a typewriter.

    cdn.discordapp.com/attachments/225550155531812865/1100092755297980527/typewriter_pause.c3p

  • Maybe something like this?

    editor.construct.net

  • Try changing 'direct movement' to 'None'

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Example by skymen(use TileMovement)

    cdn.discordapp.com/attachments/225550155531812865/993749945897209897/tile_movement_pathfinding.c3p

    An other Example (use MoveTo)

    cdn.discordapp.com/attachments/225550155531812865/1098303369132650683/GridPathfinding.c3p

    Edit: Note Set Pathfinding Behaviors 'Direct movement' properties to 'None'

  • You don't need to use scripting to call a function from a string. The event system allows for this too with the function maps feature.

    The current documentation on function maps is so vague. and the editor '#function-maps' examples also simple. I'm trying to understand, but I still don't know how to use it. Documentation only said, the function maps is very useful. But you didn't explain how it is useful and how it should be used. Can you write more detailed documentation for it? or contact Viridino Studios to show us more examples of how to use it?

  • The simplest example.

    	runtime.callFunction("myFunction");
    

    with parameters

    	runtime.callFunction("myFunction", Parameter0);
    	runtime.callFunction("myFunction", Parameter0, Parameter1);
    

    with local variable

    	const parm1 = localVars.Variable1;
    	runtime.callFunction("myFunction", parm1);
    

    with global variable

    	const parm1 = runtime.globalVars.Variable1;
    	runtime.callFunction("myFunction", parm1);
    

    with Instance variable

    	const player = runtime.objects.Sprite.getFirstInstance();
    	const playerScore = player.instVars["Score"];
    	runtime.callFunction("myFunction", playerScore);
    

    with Instance behaviors property

    	const player = runtime.objects.Sprite.getFirstInstance();
    	const playerMaxSpeed = player.behaviors.Platform.maxSpeed;
    	runtime.callFunction("myFunction", playerMaxSpeed);
    

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

    Special case

    FYI If you need multiple parameters but are not sure about the number of parameters. can be like this: Note that if you do this all Parameter will be used as strings

    	const command = "myFunction, Parameter0, Parameter1";
    	runtime.callFunction(...command.split(",").map(e => e.trim()));
    
  • Set layer properties with 'Rendering mode' to '2D'

    #open=combining-2d-3d

  • I recommend hiding the Tagged list to reduce the larger area of pink.

    .tagOuterWrap {
     display: none;
    }

    Before

    After

  • suggest 2

    Gamepad: Move the 'button index' condition to the new group

    To make it look easier to read. Move the condition with the button index to the new group.

    observe

    expected

  • AshleyTom Sorry, I know this topic has been discussed for the past few years, but I think it's time to back down a bit and make some small changes to make C3 more popular.

    The following suggestions are all for the built-in Example. As a person who has just come into C3 and learn the built-Example, the situation that may be encountered.

    # About project files.

    (file editor in C3)

    For Guest users or free version users, Allowed view using a read-only text editor for project files.

    Now, more and more built-in Example uses project files.(JSON, HTML, CSS, file).

    • [Quiz](https://editor.construct.net/#open=template-quiz)
    • [JSON](https://editor.construct.net/#open=json)
    • [Languages from JSON](https://editor.construct.net/#open=languages-from-json)
    • [Rhythm game](https://editor.construct.net/#open=rhythm-game)

    However, free users cannot view what they are. This is not conducive to novice learning.

    I suggest that they allow them to preview pure text like opening the current JS file, but only read, can't edit him. Taking a step back, you can require him to log in to his account before he is allowed to view read-only files.

XHXIAIEIN's avatar

XHXIAIEIN

Member since 26 Mar, 2016

Twitter
XHXIAIEIN has 9 followers

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • 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
  • x42
    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