Zetar's Forum Posts

  • If your Rep is under 1000 your game must be reviewed by Admin before it is posted. It takes a short while, unless they are asleep :)

  • Yann - I got an error while trying to open that cap. Something about the Xtext variable.

  • OK, sorry everyone. After re-reading the thread, I can see how everyone is confused at what I want. I will explain it better:

    Like a few others around here, I am attempting to create a maze of sorts using an array. However in my case each "block" of the maze/array is not solid, but open. Think of them as rooms that will each spawn walls according to their code in the array position.

    But at this point all I need is to populate the array with numbers. Each number is a code for a set of walls that will spawn on the room block.

    So, I will need to know where I am at specific positions in the array, to then be able to suggest the correct random code numbers that will spawn appropriate walls. The theory goes like this:

    Start of Layout

    ->find where you are in Array

    -->If at upper left corner set array.at(current x,y) One of these values (0,5,9)

    -->If at top of Array set array.at(current x,y) One of these values (1,3,8,7,12)

    -->If at right of array set array.at(current x,y) One of these values (2,...)

    -->If at left of array set array.at(current x,y) One of these values (16,...)

    --> if at bottom...

    --> if in middle somewhere...

    The sets of numbers correlate with the position. So with above codes, 0,5,9 are block walls leaving exits east and/or south, (from the top left corner of the map). (codes above are not actual. I am not looking at my code list...)

    That is what I am trying to achieve. So now does my cap make more sense?

    P.S> Thanks Yann and Rojohound for trying.

  • Array at (Loopindex("X")-1, Loopindex("Y")) = 0|4|9|12

    is exactly the same as

    Array at (Loopindex("X")-1, Loopindex("Y")) = 1

    The "0|4|9|12" evaluates down to "1".

    To do what you intended use system compare:

    (Array.at(Loopindex("X")-1, Loopindex("Y"))=0)|(Array.at(Loopindex("X")-1, Loopindex("Y"))=4)|(Array.at(Loopindex("X")-1, Loopindex("Y"))=9)|(Array.at(Loopindex("X")-1, Loopindex("Y"))=12) = 1

    Thanks ROJOhound, but I am still confused. I am trying to populate the Array at loopindex("x"), loopindex("y") with (0 or 4 or 9 or 12 or whatever numbers I supply) randomly picked.

    So if I understand you, | will give you a 0 or 1 as true or false? Mabey my example is way off base...

  • I am using for events to populate x and y of the array. Maybe it doesn't like the choose function...   I am pretty sure the | symbol can be used as an OR function. It says I can in the Manual.

  • So, I have an array 10,10 that I want specific numbers to populate in. I have created a text box grid to de-bug this issue. Why are the values all staying at 0?

    I am using the | symbol to act at an OR, (am I doing that right?)

    http://www.box.com/s/zfcovcsvvvvtkx184inv

  • Thanks Yann. Fixed it and now it works great.   I hope he updates the download for future downloaders though :)

  • This is an issue that appearead around r70.

    Try to go in the preferences dialog and click "Reset dialogs".

    If this doesn't solve the issue follow the process from that post.

    Geez, Kyatric! I deleted the registry entry for Scirra, and now my interface window is updated! Not only is that fixed, but the page looks a lot nicer. Thanks! (Why didn't I catch that earlier... ) <img src="smileys/smiley17.gif" border="0" align="middle">

  • It seems to work fine with current C2 versions if you edit the runtime.js a little.

    Search for all occurences of "cr.plugins" and add an underscore, so it'll be "cr.plugins_". I think it just appears four times at the beginning of the file.

    Found it! Thanks bud.

  • Whew... That makes me feel better. <img src="smileys/smiley14.gif" border="0" align="middle" /> I did not check to see if anyone else had posted about this, so sorry if you all did...

  • I am not sure if this is happening to anyone else, but ever since downloaded the fist copy of Construct 2, when I create a new C2 File, in the New File window, "Stores part of the project..." text overlaps location text box for the project folder. See link below for image of window.

    box.com/s/szubghfaigtb0s2q9vji

    Is it a resolution setting issue for just me or something. I have updated about 10 c2 Upgrades, and it has never fixed itself.

    Any thoughts?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try this:

    http://dl.dropbox.com/u/5426011/examples%209/mazegen.capx

    The maze size is determined by the array size. Adjust the repeat condition if the whole maze is not generated.

    -cheers

    Getting a plugin fault.   Anyone else getting this?

    Assertion failure: cr.plugins not created

    Stack trace:

    assert2((void 0),"cr.plugins not created")@http://localhost:50000/preview_prelude.js:12

    ://localhost:50000/dataStructs_plugin.js:5

    (Already posted this in the plug-in forum, but just curious.)

  • OK, So I downloaded this little plugin to view an example CAPX for maze creation. However with r80.2 I am getting

    Assertion failure: cr.plugins not created

    Stack trace:

    assert2((void 0),"cr.plugins not created")@http://localhost:50000/preview_prelude.js:12

    ://localhost:50000/dataStructs_plugin.js:5

    Any Ideas? (I placed the folder in the Plugins folder...)

  • When you imported the egg image into the sprite, did you face it to the right? The Sprite's default angle is right...   If you are using Physics it might me your gravity? Maybe you can post a Capx we can look at?

  • I never tried this, but I am currently trying to create a map generator, so i will try Tutorial and get back to you - If no one else does :)