vila4480's Forum Posts

  • Hi guys,

    I just wanted to present an alternative to the great R0j0's suggestion. Seems lighter and uses base events instead of code which makes it easier for some people to understand.

    Set Global Variable: Idle_Counter = 200
    
    Keyboard: on any key pressed 
    ->  Set Idle_Counter to 200
    
    Every 0.1 seconds
    -> IF Idle_Counter<=0
    ->->Set Idle_Counter to 200
    ->->...and whatever actions you wish to perform
    [/code:1y79ga94]
    
    The reason why I reset the variable in the last part is because I'm using it to recall a layout which doesn't reset the variable at start.
    I'm using "Every 0.1 seconds" instead of "Every tick" to reduce processor usage.
  • > why not using php and mysql?

    >

    Thank you for your reply, but I'm trying to avoid having to delve into PHP which is really difficult for me.

    > Try Firebase, rex made plugins for it.

    >

    It was a bit tricky to set up Firebase at first but the template from the store is well worth the money and it worked just fine!

    Thank you very much Busydude! I hope I can help you out someday somehow!

  • Try Firebase, rex made plugins for it.

    It have authentication, leaderboard, and storage

    Thanks! I'll give it a try!

  • Thank you for your reply!

    I'll look on the bright side of your answer: If this is a no-go then I've got to find an alternative route.

    If anyone has any alternative suggestions they would be greatly appreciated!

    Thanks guys,

    -vila4480

  • +1

    or at least the ability to invert certain browser events.

    On update found

    On update not found

    On update ready

    On update not ready

  • Hi guys,

    I'm trying to make a login/authentication system that relies on a database with player usernames, passwords, scores, achievements and certain game variables.

    How can I do this without going into PHP and the likes?

    I heard about Parse (discontinued) and Heroku... I'm using REX's plugin for Parse connections, but I get a browser CORS (access content from another server security issue) error whenever I try to connect to their server.

    I'm not too familiar with Google Play systems or Battlegrounds, but I believe they require a login from their platform (which I want to avoid) and they only store usernames, passwords, scores and achievements... can anyone confirm that?

    Am I doing something wrong? Is there any other way to do this?

    Thanks!

    -vila4480

  • I found out that using a global layer with its own eventsheet works great for having the same info showing up in different layouts.

    Search for global layers learn how they work and how you can have the same layer in all layouts.

    Then animate stuff with lerp and "set X position every 0.1 seconds" to the objects.

    I'm using this method to make message boxes, UI menus, etc.

  • I believe this is related to CORS and Heroku.

    No idea how to fix this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Braus,

    I'm having this exact problem.

    Did you succeed in resolving it ? If so could you post a how-to please.

    I do have the Rex Parse Initialize updated to the latest, installed and filled with ID, Key and URL but I only get "Login failed" message.

    Braus

    I have this exact same problem... did you manage to solve it?

    Thanks!

  • Nice to know, this will be helpful so we can exchange feedback and try to understand better the thing since I am not able to find anyone (aside for the ones in this discussion) that have done any experimentation with HTML5 games.

    Hopefully we can reach a 30 FPS for an average game soon

    Hi again , I just wanted to say that I cancelled my purchase of the Raspberry Pi 3 and instead bought the Asus Tinker Board as per suggestion by Ashley. I tried it out with the same game that I was using before (just a couple of textboxes and a simple 5 FPS sprite). I am now getting 52 FPS and it works pretty much flawlessly.

    Sometimes it does slow down a bit for a couple of frames but except for that it works great and my CPU usage is below 30% (I am running a vnc server on the board though).

  • I might be busy in the next 2-3 weeks so I will update you in a bit.

    Awesome thank you for your feedback! Here's mine:

    I decided to buy a Raspberry Pi 3 B+ because my Raspberry Pi Zero W wasn't able to handle Raspbian+Chromium (kept CPU at 100%) - I was running a "game" at 800x480 and with 3 textboxes & 2 small 5FPS sprites going on at an astounding 1FPS even with WebGL active (in the game as well as Chromium).

    However, when running the Arora browser from NOOBS I got a significant improvement with an average of 7 FPS.

    In any case this isn't close to what I need (at least 20FPS) - so I hope the Pi 3 will help. Waiting for it to arrive, I'll share all the details once I get my hands on it!

  • I have ordered one and I will give it a try. In the worst case scenario I will try to export the game for Android, or if sticking with HTML5, I will try turn based games that might suit better.

    I will keep you posted with the progress.

    Any updates ?

  • That may be a good tip for certain projects, but I really can't get nwjs to read the file in preview mode.

    So in preview, even if the path is correct, it just ignores the readfile command except when exported.

    It works well in export mode though.

  • If you use the nwjs export/preview you can use the readfile expression of the nwjs object to read a local file.

    I believe you are right... the nwjs readfile expression really does work very well and just enough for my requirements (I can even link my local dropbox file path or to a file in the app's folder). Performance is great and the code is simpler than using AJAX functions. Only downsize is not being able to experiment with it in Preview mode - having to export every time - but for that i can instead use the previous Filechooser method I referred.

    For future reference to other people: the nwjs readfile retrieves the contents of the file by inputting its path.

    I'm saving these contents as a string. NWjs.AppFolder refers to the exported App's path, but you may instead type the full path in " " including the filename:

    For further info please refer to this document: Exporting desktop apps with NW.js.

    R0j0hound you've been awesome for helping me out again! Thank you so much!

  • I probably rambled too much. Maybe this is helpful?

    https://www.scirra.com/manual/141/files

    Oh thank you, I was right-clicking the wrong folder!

    However, this does not seem to help in my particular case as my intention is to read a .txt file every x seconds because that file keeps changing over time by using another piece of software. When I import it to Construct it becomes a static file inside the .capx that can't be edited by external applications...

    Any other ideas on how to access an external local file? <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    ~

    Thank you for your help!