dop2000's Forum Posts

  • It works fine for me:

  • I'm trying to use an array to pick the instance using the UID I put inside the array

    Ok, it's still easy to do with events.

    Sprite pick instance with UID = Array.at(random(Array.width))

  • Drag n drop will automatically do the "set position" stuff correctly, no need for your own "set position" events.

    I assume the idea is to snap it to another object - HostD to Host1, MediaD to Media1.

    The event #2 should probably be "on drop" instead of "is dragging".

  • Yeah, weaponUIDI is a string, you need an integer to pick by UID.

    Why are you doing this with scripting anyway? It's so much easier with events - "System pick random instance"

  • the CSV plugin by REX can send data to Google spreadsheets online.

    I don't think it can. You are mistaking it with something else.

    You can download Rex_CSV2Array and Rex_CSV2Dictionary addons here:

    construct.net/en/forum/construct-3/plugin-sdk-10/erens-ported-plugins-modules-159391

    But they also can't send data to Google sheets, I don't know any plugins that do that.

  • Have you seen the official example?

  • You can do this with a blend mode. Check out this demo:

    howtoconstructdemos.com/zooming-a-portion-of-the-map-capx

  • the scope is off the more you move away from the center

    Check the parallax setting on the layer. Or this can be caused by the lens effect.

    I can't access your link.

  • Sadly, there are way too many suggestions there and many of good suggestions go unnoticed.

    Perhaps it would be better to wait for Ashley to purge and start a new cycle.

  • See the official "Blend Modes" template, you can find it in C2 too.

    Put the scope and a large black sprite on a separate layer. Change the blend mode on the scope. Make sure to enable "Force own textures" on the layer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To make certain traits more rare, all I've done is added more of the same options to the column

    I suggest using the probability tables feature of AdvancedRandom plugin. You can define multiple values with different weights. To make things easier, you can store the entire probability table as a JSON string in the array. I prefer adjusting the weights so that they all add up to 100%. For example:

    [[5,"Super-Abundant"],[20,"Abundant"],[20,"Rich"],[30,"Common"],[25,"Barren"]]
    

    Use AdvancedRandom.weighted expression to return a random value. In the example above, "Super-Abundant" option will have 5% chance to be picked.

    You can store such probability strings for each planet type.

    Although I would suggest using a JSON or multuple JSONs instead of the array. In many cases JSON is much more convenient to work with in C3. You can come up with a good structure which will be easy to read and update. It can be something like this:

    {
     "Ice": {
     "RichnessChances": [[5,"Super-Abundant"],[20,"Abundant"],[20,"Rich"],[30,"Common"],[25,"Barren"]],
     "HabitableChance": 10,
     "Resources": "ice,water,glass"
     },
     "Desert": {
     "RichnessChances": [[1,"Super-Abundant"],[10,"Abundant"],[20,"Rich"],[40,"Common"],[29,"Barren"]],
     "HabitableChance": 30,
     "Resources": "sand,iron,copper"
     }
    }
    
  • no insted of blury i want it to be dark black or black sorry for too much

    Just use a different effect, or cover the screen with black sprite.

  • I tried with the bullet... but the movement becomes random... sometimes it goes up a lot and sometimes the ball goes down... I want it to move at the same height, at the same distance, and at the same speed.

    On collision with the ground, set bullet speed to a fixed value and bullet angle of motion to 270 degrees. It will go up, then drop down again with gravity.