oosyrag's Forum Posts

  • + Mouse: On Left button Clicked on Tilemap
    
    ----+ Tilemap: Tile (Tilemap.PositionToTileX(Mouse.X)+1, Tilemap.PositionToTileY(Mouse.Y)) = 1
    ----+ OR Tilemap: Tile (Tilemap.PositionToTileX(Mouse.X)-1, Tilemap.PositionToTileY(Mouse.Y)) = 1
    ----+ OR Tilemap: Tile (Tilemap.PositionToTileX(Mouse.X), Tilemap.PositionToTileY(Mouse.Y)+1) = 1
    ----+ OR Tilemap: Tile (Tilemap.PositionToTileX(Mouse.X), Tilemap.PositionToTileY(Mouse.Y)-1) = 1
    
    -----> Tilemap: Set tile (Tilemap.PositionToTileX(Mouse.X), Tilemap.PositionToTileY(Mouse.Y)) to tile 1 (normal)
    

    On clicked tilemap

    If any of the tiles around the clicked tile is 1

    Set clicked tile to 1

  • So which tiles are you interested in comparing exactly, in what situation? You need to define that.

    Otherwise just loop all available options and sort by relevance after.

    If the goal is to determine if the target is adjacent to an existing tile of the correct color, you don't need distance in the first place. Just check adjacent tiles if they meet the criteria.

  • The user might be able to do so, jumping through a lot of hoops and potentially having a lot of problems.

    If you don't provide a Linux version of your game, is it not natural that people can complain that your game doesn't support Linux?

    • Post link icon

    AMD's bug report tool can be found in the "AMD Software: Adrenalin Edition" application.

    (Gods that is a painfully cringe worthy name for a program)

  • Or 1-sprite.animationframe

  • It probably just doesn't fit into your text object.

    Try using a text input (disabled) instead.

    Also try to avoid updating text every tick in general. Update when it changes instead.

  • Yours works fine for me too.

    Try sliderbar "On Changing" instead of "On Changed"?

  • It works fine for me. Try using a bigger range, like -40 to 0 and see if it has a more noticeable effect.

  • Do you have multiple instances of the same character object with it enabled?

  • Indeed, 3 years spent learning a programming language of your choice would probably be more than enough to serve you better in the long run.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yup. You'll lose everything. Including your memories and experience or any profit or enjoyment or finished application you got out of the product during the time you used it. Might as well stop now, with no idea when they'll shut it down.

    C3 can work offline btw. Just gotta check in every once in a while. I think it was 2 weeks?

  • Use an instance variable to keep track of the state of the character, and set animations based on that variable.

  • Construct 3 has some improved handling of css and html layers that is different from construct 2.

    I don't know if this will help your issue in particular, but are you utilizing the following?