waldemarlima's Forum Posts

  • thanks by u support Ashley

    I'm making an multiplayer game, which uses websocket.

    When I receive the message below, it causes the error

    js code using js :

     }else if (comando === "SetName") {
    
     const paramNicks = partes[1];
     const paramNickTeam = partes[2];
    
     const tempNickTeam1 = runtime.objects.player1nick.getFirstInstance();
     const tempNickTeam2 = runtime.objects.player2nick.getFirstInstance();
    
     console.log("nick = "+paramNicks);
     console.log("team1 = "+paramNickTeam);
    
     if (paramNickTeam == 1){
     tempNickTeam1.text = ` ${paramNicks} `; // LINE 187
     }else if (paramNickTeam == 0){
     tempNickTeam2.text = ` ${paramNicks} `; // LINE 189
     }
    
     }

    console error :

    javaScriptInEvents.js:189 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'text')
     at WsMessager (javaScriptInEvents.js:189:32)
     at Authevents_Event8_Act1 (javaScriptInEvents.js:318:3)
     at C3.Action.RunUserScript (c3runtime.js:958:16692)
     at C3.EventBlock._RunActions_ReturnValue (c3runtime.js:918:11888)
     at C3.EventBlock._RunAndBlock (c3runtime.js:918:10848)
     at C3.EventBlock.Run (c3runtime.js:918:9650)
     at C3.EventSheet._ExecuteTrigger (c3runtime.js:913:6088)
     at C3.EventSheet._TriggerForClass (c3runtime.js:913:4265)
     at C3.EventSheet._Trigger (c3runtime.js:913:3959)
     at C3.EventSheetManager._Trigger (c3runtime.js:908:6223)
    
    javaScriptInEvents.js:187 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'text')
     at WsMessager (javaScriptInEvents.js:187:32)
     at Authevents_Event8_Act1 (javaScriptInEvents.js:318:3)
     at C3.Action.RunUserScript (c3runtime.js:958:16692)
     at C3.EventBlock._RunActions_ReturnValue (c3runtime.js:918:11888)
     at C3.EventBlock._RunAndBlock (c3runtime.js:918:10848)
     at C3.EventBlock.Run (c3runtime.js:918:9650)
     at C3.EventSheet._ExecuteTrigger (c3runtime.js:913:6088)
     at C3.EventSheet._TriggerForClass (c3runtime.js:913:4265)
     at C3.EventSheet._Trigger (c3runtime.js:913:3959)
     at C3.EventSheetManager._Trigger (c3runtime.js:908:6223)
    
  • How can I check if a layout is 100% loaded?

    Currently, I'm checking if any item from the layout is visible. Is there a more effective way?

    I've already tried the events: On End Of Layout & On Loader Layout Complete, but neither of them triggers when the layout is fully loaded so that I can perform actions.

  • Addons which hack new features in to the engine are an absolute compatibility catastrophe and regularly cause disasters, and it looks like the addon in question does that. The SDK v2 is probably capable of making a plugin that produces a 3D shape that is rotatable in 3 dimensions, providing the plugin implements those features itself rather than hacking in to the rest of the engine - which is a far better design and the one that really should have been used in the first place.

    without using a v2 plugin, is it not possible to do this in c3?

  • According to them, V2 is not supported...

    Is that true, Ashley?

  • Is there any way to rotate 3D shapes on the X, Y, and Z axes without using the plugin below?

    https://kindeyegames.itch.io/construct-3-rotate-3d-behavior

    My concern is about V1 features being deprecated.

  • I'm grateful to everyone for the help :)

    However, is it possible to create a 3D shape and rotate a card the same way as in the example above?

  • I would like to request freelance services

    My name is Waldemar, and I'm currently working on a card game project in Construct 3. I'm looking for a freelance developer to create a screen with gameplay and layout inspired by the official UNO game.

    The task consists of developing the layout and gameplay only, including:

    A visual layout similar to UNO, with a pseudo-3D or real-3d look

    Support for 2 to 4 players, each having 3 cards per round

    Hover effect on cards: when the mouse hovers over a card, it rises to indicate it's being selected

    Ability to play a card by clicking on it

    A customizable background

    The ability to individually style each player's cards (color, design, etc.)

    This is a standalone task, and I will provide a screenshot reference to help guide the design and interaction style.

    If you're interested, I’d be happy to share further details along with budget and timeframe expectations.

    store.steampowered.com/app/470220/UNO

    Best regards

  • Hello everyone, I'm trying to move a 3d shape on the Z axis, with tween, but I can't... is there any calculation or way to move 3d objects on the z axis too?

    like this example : https://www.dropbox.com/scl/fi/o65y9e62zd2wmqko554ic/3d_card_flip.c3p?rlkey=4r7po5ketlw9m5xlagjocb4pj&e=1

  • Maybe something like this: fileport.io/Jm3aeSH9csMe

    awesome, thanks :)

  • In construct 3 would it be very complicated to replicate this shuffling animation similar to the one below?

    https://deck.of.cards/

    in a simpler way, without using families

  • Hi guys, I'm trying to create a card shuffling animation, but I have no experience with effects and so on.

    Can anyone help me improve this algorithm? and make the animation more natural and beautiful?

    https://www.dropbox.com/scl/fi/kw6qac3hm0su91qr49mo8/anim-cards.c3p?rlkey=j8k08q797l9sm9ehfltkmtbwm&st=m9h26ln2&dl=0

  • Does anyone know how to make Microtransactions and GetAuthSessionTicket on Steam using the Steam plugin?

  • Hello Ashley and Mikal does both plugins have support to Steam->GetAuthSessionTicket ?

  • thanks :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?