waldemarlima's Forum Posts

  • Hello everyone, I'm trying to embed https://splidejs.com/ or https://swiperjs.com/ , but I have a problem regarding the initialization of both...

    I've already tried importing the js/css of both within:

    async function OnBeforeProjectStart(runtime)
    {
    	// Code to run just before 'On start of layout' on
    	// the first layout. Loading has finished and initial
    	// instances are created and available to use here.
    	
    	
    	loadCSS("https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css");
    
    	loadJS("https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/js/splide.min.js");
    	
    	runtime.addEventListener("tick", () => Tick(runtime));
    
    	
    }
    
    function Tick(runtime)
    {
    	// Code to run every tick
    }
    
    function loadCSS(url) {
     var link = document.createElement("link");
     link.rel = "stylesheet";
     link.href = url;
     link.crossOrigin = "anonymous";
     document.head.appendChild(link);
    }
    
    function loadJS(url) {
     var script = document.createElement("script");
     script.src = url;
     script.crossOrigin = "anonymous";
     document.body.appendChild(script);
    }
    

    I have already tried adding it to the event sheet both when starting the layout and when completing the layout loading, neither of them work.

    Is there any way to import this type of library into construct 3?

  • hello everyone !

    how u doing ?

    Is it possible to hide or show a layer from a specific layout or from the current layout?

  • Yes, it's a common thing. You can store global variables and functions on event sheets without linking them.

    That's amazing!

    Thanks for the clarification.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is it a good practice to create an EventSheet without any link to any project layout, and in that EventSheet I create all the functions so that I can call them via javascript [runtime.callfunction]?

    As the project grows, what are the risks?

  • is it still supported?

  • Hi all ! How u doing ?

    Is it possible to use images or sprites to create effects using Shader in construct 3?

  • I will explain my situation in detail:

    my game is multiplayer (4 players per game), and I would like each player to be able to choose their own "skin".

    However, there will be skins that I will be able to make via sprite animation, and others that I want to use construct resources to animate.

    Is there any way to run each animation one by one in each eventsheet or js script?

    Tagged:

  • awesome ! thanks :)

  • where can i found it ? fedca

  • Hello everyone, sorry for the delay, I was very busy at work.

    I'm facing the following problem:

    I created 3 screens:

    1st Intro: Shows the developer logo and then goes to the Login screen

    2nd Login: where the login is done and after the login is completed, it goes to Loading

    3rd Loading: Loads the user's account information

    Location of the problem:

    I noticed that when I logged in, I created an event to hide the form and display a Spinner to symbolize the loading of resources from one screen to another. However, when I opened the Inspector and went to the : network usage tab, I also noticed that when I changed screens, the resources are loaded, and on the Loading screen I have a Sprite with 110 frames of 1000x1000, so it will obviously take a few seconds to load all the frames. And when loading is when the spinner on the Login screen freezes. (Visibly to the eyes)

    How did I solve it?

    On the Intro screen, I placed the Loading Sprite and defined it as Global, and I noticed that the crash disappeared, because the Sprite was already pre-loaded.

    Even though I solved it, it sounds like a hack to me...

    Is there a way to pre-load large resources or resources that I want without having to do hacks to make it work and without the Intro screen creating a huge mess?

    Ashley

  • I have a freezing problem when changing screens, when opening the inspector, I see that the crash is due to the request to load the frames of my sprite.

    So far I haven't been able to understand the concept of ObjectRepository in practice, as I haven't been able to make it work yet.

    The solution I had was to create a loading screen with the logo of the developers and supporters for a few seconds, so that they load these assets "selected as global" so that there is no "hang for a few moments" ...

    This sounds like a "hack" to me ....

    Isn't there a more effective way to do this?

    It's incredibly sad and demotivating... From my point of view, this situation proved to everyone a single reality: SCIRRA couldn't care less about the advanced community, given that the vast majority of its customers are school-aged children and hobbyists. Such an incredible community, simply left to fend for themselves.

    I really wish to be wrong in my opinion, but I think this decision is shooting Scirra in the foot...

  • Scirra compiled its own version of WebView2Loader.dll ?

    or everything related to webview2, is it default?

  • Hello guys, can anyone shed some light on how I can add more dlls to be loaded into my exported project with webview2? together with steam and epic games?

    I want to add more dependencies to my project..

  • Hello everyone, is there already cryptography plugin support in JavaScript? I want to encrypt messages before sending them on websocket.