Delphawi's Recent Forum Activity

  • When you go to the local server do you use http and ws instead of https and wss?

    "ws"

    Turns out (after testing Cors, ws vs wss...etc) the issue was the barebones colyseus sample uses a different room name (in arena.config.ts) than the one in construct sample.

    Thank you for your time :)

    By any chance, do you have experience in scaling colyseus based on number of players? Our team is looking for someone to help with that, if you are interested.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, I run a server locally along side the client in preview, we use ws: and http: instead of wss and https locally.

    I tried it but the preview couldn't connect to the server, unless I used an online SSL server like Glitch. So I thought my issue was because C3 only uses secure context?

  • If you find you need an authoritative server, I recommend Colyseus. We use it using C3 JS scripting on the client (typescript and node.js on the server), there is also a C3 plug-in, but I don't know how to up to date it is.

    https://www.colyseus.io/

    Hello Mikal,

    I have tried Colyseus after your suggestion. It is really great! But I couldn't get it to work locally with C3 because Construct needs a secure connection. I can only use it on the Glitch server for now, which makes iteration super slow.

    Do you think there is a way to use Colyseus locally and still work with C3 local debugger?

    Thanks a lot!

  • Hello!

    I can rotate a 3D object around the Z axis, but is there a way to rotate around X or Y too?

    Thank you :)

  • Hello,

    I got this message from Google Play:

    Play Billing Library Version Deprecation

    We've detected that this app is using an old version of Google Play Billing. From November 1, 2022, all app updates must use Billing Library version 4 or newer.

    Action required: Please verify your publicly available APKs are updated to the latest version of the Play Billing Library. This includes any APK or App Bundle rolled out in production.

    What is the current version used by C3, please? When can we expect an update (if not already updated)?

    Thank you!

    Tagged:

  • What will happen to the old suggestions?

    Do we have to rewrite them again in the new platform?

  • Thanks a ton!

  • Hello,

    C3 (Chrome App) keeps asking for file edit permission every time. Sometimes I open it and find all my settings (backup settings, email and website, animation speed...etc) have been reset.

    How can I solve this?

    Thank you!

  • > I really hope C3 gets a way to make global huds someday. Maybe an "additive layout" (like unity) where the layout contains the HUD, and this layout van be overlayed on any other layout.

    Hmm, did you grasp the concept of a global layer ?

    Yes. I think I did not clarify my last comment.

    What I meant is a system that includes not only Global layers, but saving items state across global layers (the coin example I mentioned above).

    Also, at the moment setting a layer as Global doesn't convert its sub-layers as well. I still need to add them one by one to each layout.

    Maybe one day we will be able to set a layer Global without the need to add it to each individual layout.

  • I often stuff several hidden global object on layer 0 somewhere ( 0, -1000), which holds all my game values. Several actually, depending on game structure, an object for player related info, an object for game stats or game element stats. (Also easy for saving: asjason)

    Using a hud group in the game's main event sheet, or dedicated hud event sheet which gets included, I sometimes use on start of layout in there to fill the preliminary hud information, or do a hud setup (positioning).

    If it gets loaded each time a layout is started, meh, that's supposed to happen me thinks ^_^ visually it wont make a difference.

    In the hud section I often use every x second and set it to 1 second, for HUD updates, life bars, feedbacks popups etc etc. The 1 second things make the entire process lightweight processing wise.

    As a suggestion, avoid using global variables to hold game status or player earned in game goodies etc .... global variables ... the name should give it away really. Is relatively easy accessible from outside the game.

    Using object variables eliminates a lot of potential unwanted intrusion to values or variables used by your game. (the fact on a object can be global and hold variables, is not the same as a global variable)

    By no means will this make your game 100% secure, but will most definitely make it harder to cheat.

    Thank you. I've used objects to hold values before, but never on this scale.

    Very good point regarding cheating.

    I really hope C3 gets a way to make global huds someday. Maybe an "additive layout" (like unity) where the layout contains the HUD, and this layout van be overlayed on any other layout.

  • You could make the objects global (not on a global layer) and use persist but this is kind of messy as you have to pick instances. I prefer to have the global hud layer for visual side and instead use global variables, this is more the norm I would think.

    The inefficient function you talk about, you are always going to need something to set the displayed values. You can either put it at the top of each event sheet or call it from one main event sheet that links to all layouts.

    Thank you. I use variables as well, but I don't poll them; instead, I update them only when they change.

    That is why adding a Polling function that would update each object again (I can't use a loop, because they are of different object types) is redundant in my case.

Delphawi's avatar

Delphawi

Member since 3 Dec, 2013

Twitter
Delphawi has 1 followers

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies