XHXIAIEIN's Forum Posts

  • Try changing 'direct movement' to 'None'

  • 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.

  • Ashley suggest that to adjust the Category of some plugins.

    In the Other category,the Drawing canvas and Advanced Random can be moved to the General category. As the Examples are constantly updated, the example library now contains many of their uses. I think it's time to move into the general category.

  • As C3 continues to add new functions, some content is no longer suitable for certain categories and should be classified separately.

    For example 'effect', I think effect should group them separately. Or more detail

    Layers

    layers: General (Set angle, opacity, visible, transparent, scale...)

    layers: Scroll (Set scroll, parallax...)

    layers: Effect (Set effect, blend mode...)

    Layout

    layout: General

    layout: Jump (Go to layout...)

    layout: initialization (Restart, Recreate...)

    layout: Effect

    layout: Perspective (Set projection, vanishing point...)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1) Check the Origin image point of the sprite.

    2) You can place an invisible ground let the Platformer can jump.

    Or use 'Tween' Behavior to make the movement animation .

    3) You can look at this Example and learn how to use Local Storage plugin to make local historical high score data.

    editor.construct.net

  • The rot instance variable is the rotation. Flipped it would be 180, but I just have it rotating continually with "add 100*dt to rot". You can set rot in any way you like. Maybe using some easing or something like that.

    One way is to add another instance variable rotVel=-90. Then "set rot to clamp(self.rot+self.rotVel*dt, 0, 180)".

    On card click

    -- set rotVal to -self.rotVal

    It's done when rot=0 or 180.

    Just an idea.

    Thank you!! I did it!

  • Hi, R0J0hound, How do I know the value of Sprite.rot just flipped back?

    dropbox.com/s/6qs81zmktsd3so8/yaxis_rotate.c3p

    For example, I want to make a similar effect, flip to the back when I click.

    codepen.io/RuudBurger/pen/gOXKrr

    codepen.io/alvinwan/pen/zemjbw

    It's not easy for me to understand of rotatedVector, unlike rotateY(180) I can tell that it's rotated by 180 degrees

  • But I have to say a negative feedback.

    I took my notebook out to work. When I had WIFI, Construct worked fine, but when I closed WIFI, only can see a blank screen when I clicked on the preview project. The browser console prompted Failed to load resource: net::ERR_CONNECTION_CLOSED, I have to reconnect to the network to continue the preview. (Note: this project uses the JSON file in the AJAX request project.)

    But when I got home and wanted to feedback this problem, I couldn't specifically reproduce it. It only happens when I'm out.