alastair's Forum Posts

    • Post link icon

    Ashley thanks it works well with that new method!

    The only issue I can see is the additional tedium of this process.

    For instance, I don't think this NWJS download will automatically check and install updates like C3 and other modern apps.

    Also, not having NWJS open when you click Remote Preview is a bit inefficient, but perhaps if the users just create a shortcut in the quick launch bar it will be okay. If it's possible, having a setting that allows opening NW.exe path after Remote Preview is selected would be fantastic.

    If there's a way to automatically paste the URL when you open NWJS to preview, that would be amazing too.

    Also would be handy is additional settings to make testing computer games faster, since remote preview would become the primary mode of testing the game ~30+ times a day, perhaps things like being able to change the default quick preview button to "remote preview" rather than "preview layout" would save time too, or at least having a hotkey for remote preview.

    Thanks

    • Post link icon

    Ashley thanks for explaining and providing a workable alternative! Though it seems a like a slower method? Currently previewing with the desktop build is like seconds to test my code/game, but when I tried to remote preview with Chrome it took me like 4+ minutes to load (I didn't wait till the end so I'm not sure how many more minutes).

    • Post link icon

    TheRealDannyyy thanks for your support! ❤️ Hopefully it keeps working in the coming years, seems pretty cool

    • Post link icon

    Ah dam, guess I'll have to stick with the desktop editor.

    • Post link icon

    Can I write files with the NWjs plugin in this? In the Desktop C3, I use the NWJS plugin to make text files at the NWjs.AppFolder. But when I run my game through Chrome, I can't even find where that file is saved, it's not found on my harddrive.

  • Chrome works great, only issues are that media buttons affect Chrome, so when you want to pause your music player it will pause the music in your game.

    Maybe you could try Brave browser? It uses Chrome's engine, but is apparently good for privacy.

  • thanks!

  • The alignment isn't occuring in the center of the screen with the above equiation

  • I can't get that to work for me? At least when the layer is 30% parallax, here is the equation I used:

    X: (fore.x + (OriginalViewportWidth*0.5) ) *0.3

    Y: (fore.Y + (OriginalViewportHeight*0.5) ) *0.3

  • Asmodean that works great! I couldn't figure out why the OriginalViewport was divided by 4 though? I understand that halving it would get to the center of the viewport, but when I tried to use other parallax values (e.g. 30%) I couldn't figure out an equation that would work in that section.

    dop2000 Ah that seems to work, a great simple solution, appreciate the assistance! 💖

  • dop2000 Thanks for reply.

    I don't want them to always be aligned. In my original post, I tried to explain that I only want the created objects to align perfectly when the player/camera is right on top of them.

    My 2 objects are not aligned when the're the player is in center of the screen

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks eberyone!

    dop2000 I forgot about that expression! But I can't figure out how to get it to work for me.

    It's not even on the screen any more.

    drive.google.com/file/d/1v9a1p3ylHrEfc0vhmqbMYPPLLK8PG2GF/view

  • Does anyboby have any ideas for what the maths would be to align 2 objects that are created on layers with different parallax?

    Here is an example project and a screenshot to illustrate the problem:

    capx drive.google.com/file/d/1dDEQJZhRHAB-9DqWdzLSLSFWF8SQxabX/view

    My 2 objects are not aligned when the're the player is in center of the screen!

    I made an old topic here on parallax maths, but I don't know if that helps me here or not: construct.net/en/forum/construct-3/how-do-i-8/parrallax-maths-142131

    Thank you for your help 😍

  • What's the fastest way for me to access the topics I've created, or replies I've made, on the forum?

    The profiles don't seem to allow this any more, am I missing something?

    (ironically, the fastest way was for me to make this topic, now I can acess them below my profile here! But making a post every time to quickly access this stuff seems a bit weird.)

  • dop2000 thank you very much for your help! ❤️ I'll report it immediately!