Stweve's Recent Forum Activity

  • heheh. Yeah, its a bit of a bugger to sort everything. It's for a clickable onscreen keyboard (sprites on top of a keyboard bitmap) and I need to add multiple keyboard types/layouts.

  • Here's my predicament and then the workaround I'm using. Let me know if you have a better one!

    I have a group of about 100 strategically placed, clickable sprite instances on a layer. They are all instances of the same object. I'll call this sprite1. I need to add a second set of 100 instances for a sprite2 object, with different placement. Only one set/object would be active at a given time in the app. Doing this all on the same layer would be a big mess in the editor if I wish to work with only one set of sprites. You can lock a layer but not an object.

    I'd like to do this all on the same layer because:

      - I have enough layers already
      • Adding a layer would change layer numbers for other layers and I'd have to scrub the events and adjust
      • I will probably need to add more objects/sets at a later time

    But the problem is managing it in all in the editor. My workaround is:

      1. Create a test layer called "------" as the top layer 2. If I want to edit sprite1, click sprite 2 in the editor (which highlights all instances) 3. Move sprite2instances to the ------ layer in object properties 4. Edit sprite1 instances as needed 5. Move sprite2 instances from the "------" back to the active layer

    Is this how you would do it?

    I'd really like to use the same object for all groups of instances but I'm not going to go there.

  • My pleasure!

  • I went with group disable to manage this, but was splitting hairs without knowing it. This was all to improve performance on older devices (e.g. Note 4 or older iPads were very slow) but it was WebGL effects (tinting on spritefont objects) causing the slowdown as opposed to collisions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This app quizzes the user on Keyboard Shortcuts for the "Pro Tools" audio recording app. It uses an onscreen keyboard and other bits.

    Google Play

  • This app quizzes the user on Keyboard Shortcuts for the "Pro Tools" audio recording app. It uses an onscreen keyboard and other bits.

    Apple AppStore

  • I have an app out there (made with C2) that quizzes the user on Keyboard Shortcuts for the "Pro Tools" audio recording app. It uses an onscreen keyboard and other bits. Kind of a niche demography but hopefully people that work with Pro Tools find it useful.

    Anxious to add more features if there's interest after the next while, after getting the word out there a bit.

  • Just in case this scribble is useful to someone else....

    I'm using a workaround. I need to display 3 logical columns of text to the user, so I'm using 12 actual columns in the grid. To represent my text column 1, I use Columns 0-2 (y 0-2) in the grid. The cell sprite and text objects are pinned to column 0 zero and set with the width of GridCtrl.DefaultCellWidth*3. Then I pin the next cell sprite and text to Column 3 in the grid with the desired width multiplier and so forth.

    I've found my table (about 200 rows) is a bit klunky, though.. I think I'm outside of the intent for this plugin, though it is great.

  • seem to be getting a hang on "Loading game for the first time" in multiple browsers.. have let it sit for many minutes.

  • I'm using gridctrl to create a table with varying column widths. There is an Action to set height, but not to set width. I can only set the default width.

    The instructions infer that width can be set:

    Cell size

    The cell size is set in "Cell height", "Cell width" in properties table, or set by "Action:Set cell height", "Action:Set cell width".

    Is there a way to set varying column widths in the grid? I'm using this to display a table of text information. Thanks!

  • Has anyone gotten zebra striping to work for the table? (alternating colors per row)

    I see this part of the Theme css but cannot get it working:

    /* Zebra Widget - row alternating colors */
    .tablesorter-grey tbody tr.odd > td {
    	background-color: #111111;
    }
    .tablesorter-grey tbody tr.even > td {
    	background-color: #999999;
    }[/code:3p4wuuvd]
    
    I also don't can't seem to properly implement this sort of css into what's there:
    [code:3p4wuuvd]tr:nth-child(even) {
        background-color: #f2f2f2
    [/code:3p4wuuvd]
    
    The closest thing I've done is implement a font color change on ever other row using actions, but that gets ruined when sorting.  Great plugin, though!
  • Thanks! I'll look into that. The more I look at it, the code also is somewhat dependent on the array being sorted in a way where active/relevant rows are contiguous. I'd rather not take the testing hit on changing the logic to deal with an unsorted array but may have to. Maybe cloning will also play a role there. It's interesting, how the sorting behaves.

Stweve's avatar

Stweve

Member since 14 Feb, 2014

None one is following Stweve yet!

Connect with Stweve