dop2000's Forum Posts

  • Yeah, C2 forum has about 20x times more posts than C3, you should definitely search it. I usually use google search, it's easier, for example:

    tiny wings site:construct.net

  • Alternatively, you can set up microtransactions on a website using the Steam WebAPI and open that from the game.

    You mean like opening a webpage in an iframe inside the game window? I guess I will also have to make some API calls from the game to retrieve the status of purchases?

    If I choose to sell a DLC pack (say, new levels for the game, just a simple text file), how will my game recognize that the DLC is purchased? Will it be installed in the same directory? Can I simply check if the filename exists in the home directory?

    Sorry if my questions are silly, I have zero experience with all these..

  • Here is a simple method of creating an island with 100 tiles:

    Using seeded random is a good idea. You can generate many random maps, select one or few that look best, and save their seeds.

  • Some NWjs features will probably work in the browser version, but I still believe it's impossible to save a file without a "Save as" dialog.

  • pilpgam

    Check out this post, there are a few examples. (they are in C2, but will also work for C3)

    construct.net/en/forum/construct-2/how-do-i-18/simple-scorched-earth-worms-ga-129595

  • Add an instance variable LootUID to the enemy.

    For each Enemy (or some other event that picks an Enemy)
     LootFamily boolean isLooted NOT set
     System Pick random LootFamily (or pick nearest to enemy)
     ... Enemy set LootUID to LootFamily.UID
     ... Enemy Find Path to (LootFamily.X, LootFamily.Y)
    
    
    Enemy on arrived
     LootFamily pick by unique ID (Enemy.LootUID)
     ... LootFamily set isLooted to true
    

    You can also add another boolean variable to the loot family to mark it as "about to get looted", if you don't want several enemies to chase the same loot.

  • I don't think it's possible to save a file from a browser game without a dialog window, due to security reasons. You can only do this from NWjs game.

  • OddConfection Thank you for the detailed answer! Is there a C2 plugin that supports microtransactions? The only plugin I found is this one, but it only has two actions - Activate achievement and Activate overlay.

    newt , is that the official plugin you are referring to?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are many ways to do this -

    Player is overlapping platform at offset (x, y+10)

    System Pick platform overlapping point (Player.x, Player.BBoxBottom+10)

    Platform pick nearest to (Player.x, Player.y)

  • I made something similar in this demo, as a way to keep lots of physics objects (apples) inside a fast moving basket.

  • See this tutorial

    scirra.com/tutorials/73/supporting-multiple-screen-sizes

    To get rid of black bars on screens with different aspect ratio, use scale outer mode and make your background about 20% bigger than layout size.

  • I don't think there is an easy solution to this. One way of doing this is to create a copy of the level at an offset and "ghosting" some objects. For example, if you want your character to be stopped by walls, and enemies to go through walls, you make a copy of the layout at 10000px to the right, remove walls from it and place your enemies there. For each real enemy object create a "ghost" sprite and position it to (Enemy.X-10000, Enemy.Y) on every tick. It will look like enemies are walking through walls. Of course, this solution is far from universal, but could work in some games.

  • In Physics behavior, you can use enable/disable collision between specific objects, but I don't think this is possible with Solid. If you tell a bit more about your game, maybe we could suggest another solution.

  • Hi Tom , Are you monitoring this thread or should we post our suggestions somewhere else?

    The search function stopped working, it's returning 404 error all the time. Also, when I click on my posts and search there, the search results are unsorted, could you sort them by date?

    Quite often, when I insert an image, it doesn't appear in my post. I have to edit it, insert the same image again (I get a new image ID) and then it works..