dop2000's Forum Posts

  • I have a template (paid) for random level generation from pre-built rooms/scenes, however it's for Construct 3. There is no infinite level in the template, but it is also possible.

    You can watch this video, it's for platformer game, but the general idea is the same. For top-down game the most tricky part is to align entry and exit points for adjoining rooms.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • You can't use "Repeat every x" inside functions and triggered events. Use Timer behavior.

  • You do not have permission to view this post

  • Or use Timer behavior.

  • Looks like these random positions are 48px apart? You can use AdvancedRandom and do this:

    Another easy option is to put 20 invisible placeholder sprites. Then pick 4 placeholders at random and spawn spikes on them, just make sure that each placeholder can only be picked once.

  • There are plenty of tutorials on how to use Local Storage. Here is one example.

    WebStorage has been deprecated for many years! You should not use it, and I'm pretty sure it doesn't work in C3 runtime anyway.

  • I thought maybe it can't access the script added to the project files? Because Android file system is different. Is if possible to embed Barcode.js into events? Put it into a string variable for example, or load with AJAX?

  • I don't know your game, not sure what else to tell you. Just try to set Scale Outer and stretch the background (make it about 200px larger or each side of the viewport).

  • Eren I tested and unfortunately it doesn't work on Android. Simply nothing happens, no errors in logcat.

  • Even if your game is designed for a fixed ratio, you can still make it fullscreen and fill the black bars area with some meaningless pattern/graphics (but at least it won't be black!)

    Use Scale Outer mode and either stretch the background in your game, or create a layer on top and cover this area with some sprites.

  • It's not about scrolling. Pathfinding is limited to layout size. So if you need a bigger PF map, you need to increase your layout size.

  • You do not have permission to view this post

  • Eren This is some powerful JS kung fu! :) Thank you!

    One question - will this code work in Android apk?