eski's Recent Forum Activity

  • There's actually a really simple formula for this. The formula for finding the proper size is:

    AreaWidth / XObjectCount

    Since the size of the area you're filling is 400, simply divide 400 by the amount of objects placed along the X axis to get the necessary width for your objects. The width can be used for the height as well, unless you want to allow rectangular areas, in which case you would set the height to:

    AreaHeight / YObjectCount

    I hope this helps.

    The problem that i'm having is i want to scale the box down. This method works well but sometimes the boxes get streched out and then they look funky.

    The boxes are default 16x16 but if the level is lets say 30x30 then i should be 400 / 30 = 13,3 per height and width.

    I want to allow rectangular, like 35x15

  • Hey there.

    I'm trying to shrink object so they fit in certain area of the layout.

    Basicly if you would look at the .cap you see what i'm talking about.

    If you make 25x25 array its should be ok. But if you would make 35x35 array it should shrink the boxes so they fit in the area that is fixed for them.

    The methods that i have been using, well they are just making construct crashing so i dont have a clue how to do this.

    Here is the file:

    http://www.internet.is/eski/shrink.cap

  • uhm.. little late but i figured this out..

    Just add onther object.

    One for saving and one for loading.. thad solved it

  • Waking up a old thread..

    I'm having problems with this plugin.

    I have two buttons, one for loading and other for saving.

    It seems when i have loaded file and inputed a filepath into the filedialog plugin its stuck there.

    So when i want to save to another file it saves a blank array to the original filepath..

    Just me ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Alright, this CAP file should answer any remaining questions you have about this(once again, be sure to extract it):

    Picross Square Number Finder Thingy

    The trick to it is using nested loops to loop through the array; that is, you start a loop inside of another loop through use of a sub-event. This allows you to check column by column or row by row depending on whether you loop through starting with the X or Y axis first.

    Once again, I hope this helps.

    I dont believe it, i was really close to the right solution, the for loops were little off..

    But i didnt really get it though i was doing it myself..

    i will have to write this thing up on a big teachers table to get how it works.. the for loops are really messing up my head..

    but on the other hand, you got some skillz.. i mean.. did you have to ponder on this ?

    i have been spending some seriously hours on this thing

    and also.. A BIG THANK YOU for this.. nicely set up .cap with explanation... SUPER

    finally i can continue..

  • yah, that definitely helped.. i'm understanding this better, of coz use a for loop..

    Its just the whole picture now.. Trying to connect the number system to the boxes(or the array).

    Can i take one line in the array and copy the values to a textbox ?

    Like if i could take the top row and put it in a box then i have a string that i can work with.

    Same with the columns. Anyway i cant find or think of the way to do it.

    Another thing.

    When you have 2 for loops and they both loop 10 times, does the first one finish before the second one starts ? If so, i cant use the loopindex of first loop in the second loop.. ?

    i was trying to do this, dont remember why though (trying alot of methods go get this to work) and the loopindex return -1.

  • Sorry to bump this up again but i am going NUTS, i just dont get how to do this...

    If anybody has a clue, doesnt even have to help me with the codeing just point me in the rigth direction.

    Should i use arrays for the boxes to tick in ? Can i connect them somehow with the number system ?

    The problem with the number system is that it doesnt calculate right if the last number is 1.

    Basicly what i have on the number system is this.

    +checked = 1

    - counter + 1

    +checked = 0

    - textbox = textbox.text & counter

    - counter = 0

  • [quote:3l8pfo0w]Did you enable 3D Layering in the layer properties?

    eh he he ..

    nah.. didnt know of that.. well.. its fixed now thanks

  • Sorry to wake up this thread but i have been trying to do the same thing and having the same problem. The top layer is hidden and the bottom is fubar.

    I really didnt understand all this mesh stuff, i'm using .99.72 now.

    Just wondering if this prob has been fixed in this version or if i'm doing something wrong..

    (btw i found some new v. of the plugin 3dbox and now the program crashes when i open a game that i maked before updating it)

  • aaaaanny input.. would love it

  • Yeah i understand.

    At first i thought it was something that i did wrong, but then i saw that the array worked like it should despite that the debug said otherwise...

  • Hello, one more post from me

    Anyway, now i trying to learn on the array object.

    I'm trying to make a simple nonogram game and well i'm having some problems regarding the number system on the sides. If you are not familiar with the type of game you can see it here : http://en.wikipedia.org/wiki/Picross

    The problem is adding the numbers together.

    For example if the blocks are "0 0 1 1 0 1 0 1 1 1" it should read out "2 1 3" but there is a glitch in my calculations. There are two .caps in the zip and one array that can be loaded.

    In one of the caps i'm only trying to get the number system to work.

    In the other one the cells are made and the textboxes, all marked with rows, colums and x.y in the variables.

    Here are the files:

    http://internet.is/eski/nonogram.zip

    I havent found much info about the array object so i thought i would ask.

    Also, in the debug why does it only show one row for the array object though the list is 10x10x1 or 100x100x5 for that matter.. ?

    Anyway i would appreciate any comments on this matter.

    So far the people here on the forum have been really nice and quick with responses and help.

eski's avatar

eski

Member since 14 Dec, 2009

Twitter
eski has 1 followers

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies