John Cutter's Forum Posts

  • I've been reading about a PlayFab plugin. Has anyone used it?

  • I'm working on a word game and I'd like to include a global high score leaderboard. What services are people using these days?

    I found the awesome LootLocker tutorial for Construct 3, but I'm trying to create the next Wordle and at higher player counts their pricing starts to get out of my comfort zone.

    I've found dozens of other options, but many of the recommendations are several years old. What's the current best option for something like this?

  • Hmm. I had a thought about the subscription idea.

    What if I added an additional query string when I launch my C3 program? Right now I'm passing the filename. What if I also passed some kind of code based on the current date, or something?

    For example, if a user went to the link on my subscriber-protected Shopify page and clicked on it, the URL would include query strings for the name of the file AND the current date (which would be encrypted). My C3 program could then use the encrypted date to determine if the user actually came from the launch page.

  • Thank you for the reply!

    I'm not overly concerned about protecting my assets. If someone wants to share my files then there's probably not much I can (easily) do to stop them.

    I'm *more* concerned about providing users with a simple experience. Here's what worries me:

    - Users could download the files but then forget where they saved them

    - A user might separate the audio and data file (not realizing they need both)

    Also, I'm worried that a user might contact me because they don't know how to find their files. If they are using a Mac I would not be able to help them, as I don't own and have never used one.

    ______________________________________________________________________________

    I have also considered offering a subscription and then allowing subscribers to stream the files. Unfortunately, the subscription is through Shopify and I don't know of an easy way to get subscriber info from there to my program. (Shopify has an API for this, but it looks pretty complicated. Not sure if I could get that to work in Construct or not.)

  • I have a C3 program that uses audio (.mp3) and data (.json) files to drive a Bluetooth-enabled device.

    I want to sell these files on my Shopify store. What is the best practice for something like that?

    Would this work?

    - I .zip the files together and change the extension to something uncommon (.daff?)

    - Allow users to download and save the files locally

    - My C3 program will then allow users to navigate to the appropriate folder(s)

    - It will display all .daff files in the current folder

    - When the user selects a .daff file my C3 program will unzip both files and play them

  • This isn't working:

    const myPlay = runtime.objects.btnPlay.getFirstInstance();
    myPlay.enabled = True;
    

    This doesn't work either:

    myPlay.setEnabled(True);
    

    Any suggestions?

    Second Question:

    I have Javascript in two different events. I have a function in the first event. Is there a way to make this global, so the Javascript in the other event can access it? Right now I have the same function in both events...

  • Thank you for the reply! I'm not sure what Worker does so I'll do some research on that. Yeah, it sounds like I might be able to use a Construct timer to run the script. I'll give that a try.

  • I am working on a Construct program that includes some open source Javascript code. (To communicate with a Bluetooth device.)

    Part of the open source Javascript code runs in a loop every 100ms. What would be the best way to do this using Construct?

    Should I create a loop in Construct that calls the Javascript code every 100ms? Would this be reliable, or would the timing get off?

    Alternately, is there a way to do the looping in Javascript while Construct is still running?

    Here is how the Javascript code is structured:

    const timer = window.setInterval(()=> {
    		
    	(code...)
    
     }, 100);
    
  • My app is using Bluetooth to control an electronic device, and all of the Bluetooth code is in Javascript.

    I have about 53 lines of Javascript code that does some bit manipulation and setup; then I send a Bluetooth signal to the device. I've found that I get better audio sync when I play the sound on line 52, right before I send the signal.

  • My app requires me to use Javascript and I'm trying to sync up some sounds to that code using audio_play(). The sounds are coming from my website... so there is lag.

    1. I know that I can easily pre-load sounds in Construct 3. Is there any way to play these pre-loaded sounds using Javascript? (Rather than grabbing them from my website.)

    2. Alternately, is there a simple way to pre-load sounds in Javascript? I've found a way to do it in HTML but I'm not sure how to use that information. (I'm not very familiar with website coding.)

    Thanks for any suggestions!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You still need to choose one of the scaling modes, it doesn't need to work in full screen.

    Hmm. I'm confused then. The only place that I can see to choose a scaling mode is under "Full Screen Mode". I was hoping to keep the browser bar and just have my app appear in the middle of the browser screen.

    Maybe I need to look into embedding my app on a web page? Research tells me that I am supposed to use the Scirra arcade but my app isn't a game and would just confuse people...

    UPDATE: I just tried full screen / scale outer and I think that will work for my needs. Thanks!

  • Thanks for the link! I'll check it out.

    I'm not using full screen mode. I just wanted my app to display in the horizontal center of the browser window.

  • Hello. What are you trying to do? (I'm not sure why you would want to update a text display that no one can see.)

    To answer your question, I thought of three possible solutions:

    First, I *think* you can just uncheck "initially visible" in the text properties. You can still put text in the box, but it won't show up on the screen.

    Second, you could change the opacity of the text box to 0%. (In other words, make it transparent.)

    Third, you could change your font color to the same color as the background.

  • I've been researching this but it seems like most of the questions about centering are for web or mobile games in full screen mode. I'm creating a browser app.

    My app has a logo, some buttons, and about a dozen text fields. I'd like to get everything centered in a browser window for both PC and mobile (portrait). What is the best approach?

    I tried pinning everything to a sprite and then centering that sprite in the middle of the screen -- but that isn't working. (I'm setting the x coordinate of my framing sprite to: (ViewportLeft(0) + ViewPortRight(0))/2)

    Any suggestions?

  • Thanks for the reply, Ashley!

    Apple ban other browser engines on iOS.

    Interesting! The App Store has Bluefy listed as: "Bluefy - Web BLE Browser". Maybe it's built on Safari and then it just adds the Bluetooth on top of that.

    I know that Safari doesn't support Bluetooth, but Bluefy has allowed me to at least connect to a Bluetooth device.