Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TheBlackParrot

Pages: 1 ... 184 185 186 187 188 [189] 190 191 192 193 194 ... 476
2821

unlocked so you'll get off my ass about it.

2822
Just put out v5; sorry if it came a little quickly lol. (see OP)

Throw feature requests at me because v6 should be the final beta.

2823
I fixed a couple of bugs in Minesweeper, but I'm going to wait to put out an official update so-to-speak.
https://bitbucket.org/TheBlackParrot/blockland-minesweeper-gui/get/7fc065dc5c29.zip if you want said fixes now.

2824
So what function is going wrong at the moment?
Nothing, it's all working.

2825
why bitbucket :(
Munk pulled me into itttt

2826
("Mine_Grid_Button" SPC %x SPC %y).delete();


You cannot do that
Either add them to a global variable and then do $MineGridButton[%x, %y].delete(); or do eval("Mine_Grid_Button" @ %x @ "_" @ %y @ ".delete();");
If you go and look at the addon and it's code, it actually worked fine.

2828
Modification Help / Re: TheBlackParrot's Game Dump or whatever
« on: April 29, 2013, 07:29:50 PM »
good news
it's working!



just need to add a few more things and we're good to go.

2829
Modification Help / Re: TheBlackParrot's Game Dump or whatever
« on: April 29, 2013, 06:37:14 PM »
i'm so cloooose to getting these stupid checks working


2830
Modification Help / Re: TheBlackParrot's Game Dump or whatever
« on: April 29, 2013, 12:51:01 AM »
https://bitbucket.org/TheBlackParrot/blockland-minesweeper-gui

Started on a Minesweeper game, although it's proving to be much more difficult to make compared to Avoider.

2831
Modification Help / Re: Chat Customizer (Beta v4 out)
« on: April 28, 2013, 09:57:30 PM »
v4 was just released, see the OP.

2832
hnnnn

new issue:
full code - https://bitbucket.org/TheBlackParrot/blockland-minesweeper-gui/src/2e7d973dc2c8c7d1a0f136b3bee470102d17a5c8/client.cs?at=master
Code: [Select]
//	--attempt 2--
// if(%mine_count == 0 && %button_count != 0)
// {
//
// for(%i=0;%i<8;%i++)
// {
//
// %xc = getWord(%check[%i],0);
// %yc = getWord(%check[%i],1);
// Mines_clickGrid(%xc,%yc);
//
// }
//
// }

// --attempt 1---
// if(%mine_count == 0 && isObject("Mine_Grid_Button" SPC %check[%i]))
// {
//
// %xc = getWord(%check[%i],0);
// %yc = getWord(%check[%i],1);
// if(("Mine_Grid" SPC %check[%i]).mine == 0)
// {
//
// Mines_clickGrid(%xc,%yc);
//
// }
//
// if(isObject("Mine_Grid_Button" SPC %check[%i]))
// {
//
// ("Mine_Grid_Button" SPC %check[%i]).delete();
//
// }
//
// ("Mine_Grid_Button" SPC %x SPC %y).delete();
//
// }
//
// }
I'm trying to do the same command to the surrounding sqaures that also have 0 mines surrounding them, but both of those attempts at coding it just sends BL into an endless loop.
It seems like it would work that way but apparently not. :x

I'd also really like to keep it GUI-based rather then sending everything to their own variable.

2833
What about using buttons instead of swatches so you can actually click on them?
And then in your loop you can do this when creating the button:

command = "clickGrid(" @ %i @ ", " @ %j @ ");";

Then it will call clickGrid when you click on the button, with the arguments of column and width
I'm not on my pc so I can't tell you how to properly create buttons
I feel like an idiot, completely forgot you could still use %i and %j like that. thanks lol

And the swatches are so the grid is still visible once it's clicked.

2834
I'm attempting to make a Minesweeper game I can't figure out how to get either the name of a grid's square, or a variable within it when it's clicked.
I do know how I would detect variables from surrounding squares, but I need to get the one clicked first.

Code: [Select]
        for(%i=0;%i<%grid_width;%i++)
        {

                for(%j=0;%j<%grid_height;%j++)
                {

                        %pos = 1 + (%i*20) SPC 1 + (%j*20);

                        %grid = new GuiSwatchCtrl("Mine_Grid" SPC %i SPC %j)
                        {
                                profile = "GuiDefaultProfile";
                                horizSizing = "right";
                                vertSizing = "bottom";
                                position = %pos;
                                extent = "19 19";
                                minExtent = "19 19";
                                enabled = "1";
                                visible = "1";
                                clipToParent = "1";
                                color = "255 255 255 64";
                                mine = "0";
                                gridX = %i;
                                gridY = %j;
                        };
                        Mines_Area.add(%grid);

                }

        }

2835
Music / Parrot's dropbox dump folder
« on: April 28, 2013, 01:55:51 AM »
https://www.dropbox.com/sh/l1ue8soz93xe6lc/UdxVPngU9B/BL%20Loops

Download whatever you'd like, request something, idk.
have fun

Pages: 1 ... 184 185 186 187 188 [189] 190 191 192 193 194 ... 476