Whiteclaws's Recent Forum Activity

  • Thndr

    Already thinked of that and that's what I'm using now , and doesn't seem elegant tho

    Well , it's a workaround after all ...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone,

    The title says it all , How could I pick a random instance of already picked instances after let's say ... a comparison

    As if variable1 = 10

    What I did is

    Pick All Object1

    If Variable1 = 10

    -- Pick random instance

    --- Do whatever

    But it doesn't seem to work

    Am I missing something ?

  • Ashley , but it always prefer the instances near 0,0 , as I want it to pick a random instance , and that is a bummer ...

    Is there any workarounds , as I want it to pick the highest instances , but randomly

  • Capx

    I guess it's not totally a bug , it may be by design , so no capx is needed ...

    Steps to reproduce:

    1. Create 3 instances of 1 object

    2. Give the object a variable and set 2 of them to a value other than 0

    3. Pick the instances with the condition

    Observed result:

    Only picks 1 instance even if multiple instances have the same variable values

    Expected result:

    Picks all the instances that have the highest instance variable

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Not needed

    Construct 2 version:

    136

  • Arima , please put this on another post and STICKY IT , I BEG YOU !

  • 3.000.000 elements to cycle thru every time you loop thru the Array ,

    With that , I can say all what your array will do is crash the game

    Also . Procedural's hard , to get to a pretty good generation , you'll need a modified version of perlin noise, and coding that bad boy isn't easy AT all , while you could use easier algorithms like diamond-square or midpoint displacement ( There's an example running around but I'll let you do the search ) but it's not your level AT ALL.

    A lot of people went for gold and falled short , I'm telling you , try something at your level , and when you'll understand C2 better , tackle those subjects .

    Cheers !

    Edit:

    My blow-hard answer ;

    Generate a 1D curve using midpoint displacement and fill all the bottom with minerals and such

    and then , for cave generation ...

    "Mine" the generated terrain using this technique

  • <img src="http://ccl.northwestern.edu/netlogo/docs/images/intersecting-polygons.png" border="0" />

    When whe talk about overlapping , we talk about multiple objects touching each others , as described on the picture above

    There's 2 primary events when talking about collision

    Is overlapping

    and

    On Collision

    And the main difference between the two is that ...

    On Collision only fires once , when the two collision boxes enter in collision

    While ...

    is Overlapping fires when the two collision boxes are overlapping

    and will continue triggering until the two boxes aren't overlapping anymore ...

    You could say that on collision is a Is overlapping with a trigger once but that's another subject <img src="smileys/smiley1.gif" border="0" align="middle" />

    Cheers !

    P.S: Read further on the manual and get a free badge ! ;)

  • Nodewebkit's performance is as good as Cc native exporter's performance

  • well then , you can't qualify yourself as a programmer , nor a level designer

  • Do you have any past experiences making games ?

    Examples of your work , levels you designed or even pieces of codes you made can get you more attention

    Just a helpful tip !

    Cheers !

  • You can get the array JSON structure with the *Array-Name*.AsJson

    and you can load an array using LOAD in the array's actions section ...

    Cheers and have fun debugging JSON codes ;) !

  • But there's also people who may want to abuse that button , and even if we made that button one time a day per account , they may make multiple accounts an abuse it more !

Whiteclaws's avatar

Whiteclaws

Member since 14 Feb, 2011

None one is following Whiteclaws yet!

Trophy Case

  • 13-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies