shanjei's Forum Posts

  • happening to me in only one project. not sure why. switching to different loader style loads properly.

    console error during the issue:

  • Yes. In my case even saving the project as c3p triggered Windows defender. Happened multiple times in different PCs.

  • Had similar thing happen to me a few times. Adding a Wait dt seconds between the actions might help.

  • Give a keyframe a unique tag, and then use the Timeline Controller 'On keyframe reached' trigger to run some actions when the timeline reaches that keyframe.

    Thanks. I'll try that. What I ended up doing was use a boolean instance variable, set it to true in the timeline where desired and have it trigger the function in eventsheet (with trigger once while true condition).

  • I want to call a Construct 3 function from a timeline. The thing I'm trying to achieve is this:

    I have a timeline which shows a series of sprites and other animations. At certain points in this timeline, I want to play an audio (which changes based on the sprite). I'm playing audio file in timeline directly right now which is like hardcoding the audio file. So, I need some way to reference different audio files here based on an input. Is it possible with timelines?

  • I am having issues with remote preview for last few days as well. It disconnects within a minute every time. So frustrating to deal with.

  • I was working on a project and it started acting odd when I was trying to center some objects. I realised the ViewportWidth expression was not giving the desired value. Using it aligned objects off-center. When I tried (ViewportLeft + ViewportRight), it worked perfectly (aligning objects to center). When I logged both values, they were different. I tried the same in a fresh Construct 3 project. There, they were both same. What could cause this behaviour? How do I fix this?

    In fresh project:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley Hi,

    We are in process of creating a project which requires importing many static images and animations from a server (during loading, in a loader layout) for sprites in advance for using them in the main game layout. We were able to do it easily for static images using Load from URL action. But in case of animations, it is not possible that way as we don't know the number of frames for an animation in advance.

    What we'd like to do instead is import a spritesheet with several sprites and slice them to form an animation for a sprite object. Is this possible to do during runtime? If it's, is there a way to do it using javascript? Any alternate method to get the result is also fine. What we need is a way to load animation frames from URL for our game sprites. Any help is appreciated. Thanks.

  • I want to add subscript formatted text in the text object. Is that possible or is there any way to accomplish this in Construct?

    Tagged:

  • Hi, thanks for the solutions. The code I was using was indeed right. It was not working as I was using it in start of layout. It worked after I moved it and all associated events to the update loop. It took me hours to figure it out.

    Thanks a ton winstreak for the video. This was a confusing topic. Your video really helped me understand it a lot better.

  • I want to set the position of an object to another object. But they are in different layers with different parallax.

    What I want:

    Target position object (race_flag): ("river") layer parallax 100%

    Object to be moved (ruler): ("ruler") layer parallax 0%.

    I tried CanvasToLayerY but it didn't work. This is how I used it:

    (CanvasToLayerY("ruler", LayerToCanvasX("river",race_flag.X,race_flag.Y), LayerToCanvasY("river",race_flag.X,race_flag.Y))

    I tried interchanging layers and values in the code but it still didn't work. Is there any other way to achieve this?

  • Thanks! This worked but one issue is the player doesn't move again. I'll see if I can improve upon this.

  • I want to use the solid behavior for my obstacles. But my player doesn't seem to collide with them, it just passes through normally. I checked documentation and it appears solid only works when we use behaviors like 8-direction, platformer, etc.? I'm using simple 'move forward' action to move the player object (it is a simple snake game). So how do I get solid working for simple obstacles. Please help.

  • > This happens every time when I refresh my game while in the inspect mode. And it only happens when selecting an iPhone. Samsung or Pixel phones load the game. What does this error mean. Help please.

    >

    >

    Is Worker mode set to off? Just curious

    ok I found out what it is. It was off and I tried turning it on. Still error happens.

  • Thanks for the reply. I'm sorry I don't know what a worker mode is. Can you explain?