xpxilom's Recent Forum Activity

  • I already managed to do it, it is by taking the size of the layer with Parallax s 100%

    / === 2. GET INSTANCES (Estilo Imagen) === const layoutActual = runtime.layout; const capaHUD = layoutActual.getLayer(nombreCapaHUD); const lienzo = runtime.objects[nombreTipoCanvas]?.getFirstInstance(); // Usa el nombre correcto const gv = runtime.globalVars; // Acceso a globales, usado en la parte de dibujo // === 3. CALCULATE HUD/CANVAS TARGET GEOMETRY (Estilo Imagen) === // (Calcula hudVisibleWidth, hudVisibleHeight, hudTopLeftX, hudTopLeftY usando cssPxToLayer) let hudVisibleWidth = 0, hudVisibleHeight = 0, hudTopLeftX = 0, hudTopLeftY = 0; let hudIsValid = false; if (capaHUD && capaHUD.parallaxX === 1 && capaHUD.parallaxY === 1) { const anchoInternoVentana = window.innerWidth; const altoInternoVentana = window.innerHeight; if (anchoInternoVentana > 0 && altoInternoVentana > 0) { try { [hudTopLeftX, hudTopLeftY] = capaHUD.cssPxToLayer(0, 0); const [hudBottomRightX, hudBottomRightY] = capaHUD.cssPxToLayer(anchoInternoVentana, altoInternoVentana); hudVisibleWidth = hudBottomRightX - hudTopLeftX; hudVisibleHeight = hudBottomRightY - hudTopLeftY; if (hudVisibleWidth > 0 && hudVisibleHeight > 0) { hudIsValid = true; } } catch (e) { console.error("[SETUP] Error coord conversion:", e); hudIsValid = false; } } } // === 4. POSITION AND RESIZE CANVAS (Estilo Imagen) === // (Ajusta lienzo.x, lienzo.y, lienzo.width, lienzo.height basado en los cálculos anteriores) let canvasReadyForDrawing = false; if (hudIsValid && lienzo && lienzo.layer === capaHUD) { const targetX = hudTopLeftX + margenX; const targetY = hudTopLeftY + margenY; const targetWidth = hudVisibleWidth; const targetHeight = hudVisibleHeight; if (lienzo.x !== targetX || lienzo.y !== targetY) { lienzo.x = targetX; lienzo.y = targetY; lienzo.positionChanged = true; } if (lienzo.width !== targetWidth || lienzo.height !== targetHeight) { lienzo.width = targetWidth; lienzo.height = targetHeight; lienzo.sizeChanged = true; } if (lienzo.width > 0 && lienzo.height > 0) { canvasReadyForDrawing = true; } }

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • drive.google.com/file/d/10_IYhqDGUiVVlr2embIOh0UK1cAd5BR9/view

    I can't make the canvas responsive at very horizontal scales; it goes crazy.

    When it's not in full screen, the phone doesn't display completely, etc.

    I've tried everything, this is beyond my knowledge and the AI

    Tagged:

  • I need to download new content and levels for my games (images, sounds, videos, etc.), I have been searching for several days and I can't find how to do it, any ideas are welcome

  • Why don't the developers of Construct offer a free version or a very low-cost option for independent or individual developers, such as an annual fee of just 3 dollars? This approach could be effective in monetizing mainly companies or teams of more than three people.

    Independent developers play a crucial role in boosting the popularity of development platforms by creating free tutorials and videos. This method was a key factor in Unity's success, as demonstrated by contents like this video. These contributions not only elevate the platform's fame but also expand the user community and the overall popularity of the engine.

    An interesting proposal could be setting up a Patreon. Successful indie developers could contribute to funding improvements for the engine if their games do well in the market.

    On another note, I am pleased with the consistent updates that Construct 3 has been receiving, and I admire the smart way they handle everything. However, there's a concern that they might grow too big, similar to Unity, which despite having around 7,000 employees, has shown limited significant advancements over the years. It's crucial to maintain a balance between growth and continued innovation and effective improvements.

    Tagged:

xpxilom's avatar

xpxilom

Member since 3 Nov, 2023

None one is following xpxilom yet!

Trophy Case

  • 1-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies