dop2000's Forum Posts

  • Try changing the file extension. If you set the filename to something like "myArray.dat", it should not open automatically.

    You can also try "Browser Invoke Download of String" action to download Array.AsJSON

  • You can spawn a triangle, but avoid using other behaviors like Pin with physics objects. Also, avoid using non-physics actions like directly changing object angle or position. See the manual for more info.

    I don't know how to apply a force in the direction of movement and then rotate the triangle with forces.

    You can use "Apply force at angle" to propel forward.

    There are several ways to rotate, you can apply angular velocity or torque, or apply force to different points of the object.

  • 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".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.