randomly's Forum Posts

  • Alright, I see.

    Okay, so just use what I posted above and replace the desiredXmin by the system expression ViewportLeft, replace desiredXmax by ViewportRight.

    (Those two expressions return the X coordinate for the left/right edge of the window (not the layout).

    Hope that this is what you need.

  • You do not have permission to view this post

  • You can now filter the table using "FilterBy" action where you can set the text to filter with and select the column z-index based or -1 for all columns and finally set if it's sensitive case or not

    I added 4 properties

    Selected Row Background Color example "red" "#ff0000" "rgb(255,0,0)

    Selected Row Text Color example "red" "#ff0000" "rgb(255,0,0)

    Hover Row Background Color example "red" "#ff0000" "rgb(255,0,0)

    Hover Row Text Color example "red" "#ff0000" "rgb(255,0,0)

    you can now set the text color and background color for the hovered and selected Row

    You are a f*cking genius, man! Thanks so much for this and for your e-mail explanation!

    C2 creates an issue, you fix it. Wow.

    (Tried to donate, but your donation link gives me an error "Connection reset". Do you have any other link that I can use?)

  • I'm not completely sure what you mean..

    Do you want the Sprite to be bound to the right and left edges of the layout?

    Otherwise, you can always use conditions such as

    IF Sprite.X < [desiredXmin]
    THEN Sprite.X - set X to [desiredXmin][/code:6trrm93r]
    
    and vice versa for the max value:
    
    [code:6trrm93r]IF Sprite.X > [desiredXmax]
    THEN Sprite.X - set X to [desiredXmax][/code:6trrm93r]
    
    If that's not what you want, please explain your problem more.
  • Hey man, love this plugin, hope you can help me with this:

    Today, I encountered the first issue that i can't manage to resolve:

    I'm trying to implement a search system for the list that I'm displaying.

    To do so, I have a textbox where you can enter your keyword(s).

    When you search, a loop starts, repeating

      times. Every loop, a condition checks whether
        matches the search term regex
      . (itemindex is zero, since I'm only searching in one specific column (the first one). If that regex check returns false, the row at [loopindex] index is removed. I added a log action to check whether the event actually trigger and yeah, it does. So the issue must be the listview plugin. It looks like it's removing the rows, but not updating the actual rendered table. The table changes though, some rows are removed, but definitely not all rows that match the conditions. If I press the search button ~5-7 times (without changing the keyword), the search results are good (each time, some entries are removed), but there must be a way to do it on the first click, right? Here is an image of the important part of my event sheet:
      I might also add that the table includes quite some items, 227 rows à 5 columns, dunno whether that might be related to the issue. Thanks for any help! PS: Also, if you have some more time how can I make a column change color when clicking on it? (preferably with the CSS file)
  • Use the System condition "Pick by evaluate".

    • In the object field, choose your Sprite
    • In the evaluate text field, enter Textbox.Text = Sprite.InstanceVariable

    This should get you going.

    If not, please send a screenshot of your Pick condition and I'll figure out what's wrong.

  • I don't think this is possible since the Scirra Editor only provides the code and compilation, but the actual rendering (thus the FPS) are done by NW.js (or your browser if you were to export via HTML).

    I'm not sure though, there may be advanced methods that I'm not aware of.

    I assume a high probability though, that it's not possible, sorry.

  • I don't think there is a way to do this.

    And at this point, I don't think there should be a way since there really shouldn't be any need to check that since image points can't be modified while running.

    If you would state the context of case, we might be able to help you nonetheless.

  • Can't view your video since the URL has been shortened.

    But I'm pretty sure, that this would solve your problem:

    Check whether (when clicked), this expression

    [Tilemap].TileAt(PositionToTileX(Mouse.X),PositionToTileY(Mouse.Y))[/code:164jbhc9]
    returns [i]-1[/i].
    If it does, that means that the currently clicked tile is empty, meaning that there is no tile at the moment.
    If the expression returns anything else [i]but[/i] -1, there is a tile already.
  • Use the expression

    [Tilemap].TileAt(PositionToTileX(Mouse.X),PositionToTileY(Mouse.Y))[/code:1snuait9]
    when clicked, to retrieve the Tile ID at the current mouse position.
    
    You can then compare the Tile ID that was returned by the expression with the Tile ID of, e.g., grass and add to grass if the comparison is true.
    
    If you need further information/help, give me a shout.
  • The browser action won't work for me, since I want to download the file(s) internally, without opening a browser / another window.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This might help.

  • I'm sorry if I was not particular enough, if you got any questions, I'll happily provide the answers for you.

  • Oh wow, the rotations will help a lot, e.g. for rotating coins, thanks very much!

  • Replace this condition (direction = -1) by the System Condition "Else".

    What's happening now, is that as soon as you are pressing space and direction is 1, direction is changed to -1.

    Then, the system moves to the above displayed condition, realizes that direction is now -1, triggers the condition and immediately changed direction back to 1.

    Using Else prevents this from happening.