dop2000's Forum Posts

  • Sometimes when I want to close an open project or the entire program without saving, a dialog pops up, saying that I have unsaved changes. I definitely click "Don't save", but the project is saved anyway!

    Anyone have this issue?

    I just lost a project file to this. I deleted a bunch of events to make a screenshot, then wanted to close without saving, but the project was saved anyway. Such a weird and dangerous bug!

  • Must be a minor bug in how objects are highlighted in debug mode. I wouldn't worry about it.

  • Sweet Run - a game about donuts, candies and ice cream. And the dangers of fresh vegetables!

    You can play Sweet Run for free here:

    poki.com/en/g/sweet-run

  • Click Menu -> View -> Bars -> Tilemap Bar

    You can then grab and dock it to a preferred location.

  • You can remove the period and convert to lowercase:

    lowercase(replace(Array.CurValue, ".", ""))

    If there are many such characters that you need to remove, it may be easier to use a local variable:

    set t to replace(Array.CurValue, ".", "")
    set t to replace(t, ",", "")
    set t to replace(t, ":", "")
    set t to replace(t, "!", "")
    set t to replace(t, "?", "")
    set t to lowercase(trim(t))
    

    Or use regexreplace()

  • You can use Keyboard event On 'Enter' Key pressed and On 'Tab' Key pressed.

    I don't know why it skips textboxes. You can add an instance variable ID, pick a textbox with (currentID+1) and set focus to it.

  • Is there a way to structure the game in such a way that I would be able to copy certain project files from one game to another without causing references to be broken?

    I think this is only possible if you clone a project. When you create an object with the same name in two different projects, they will have different internal IDs.

    You should be able to copy-paste event sheets between projects.

  • Using cos function is a great idea!

    I would do something like this:

    Set max speed to lerp(100, 200, abs(cos(MovingAngle)))

  • On tap -> Sprite set animation frame to (self.AnimationFrame+1)

  • You can compare Player.Pathfinding.MovingAngle, and if it's close to 90 or 270 degrees, decrease the maximum speed. If it's closer to t0 or 180 degrees - increase the max speed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's difficult to figure out and explain what happens when you invert both conditions, and when there are multiple enemies on the layout..

  • Since it's my demo, I'll explain.

    Please download this updated file:

    dropbox.com/s/jhje5xdqc5t2ahw/Forest2.capx

    Note, that all sprites have origin image point at the bottom.

    First, in event #1 all trees are z-sorted by their Y-position on the layout.

    On every tick I pick trees that are below the character on the layout. These trees will be green, all trees above will become grayscale.

    Then among the green trees I pick the bottom tree (on Z-axis). I may as well pick a tree with lowest Y-coordinate, it will be the same tree. This tree will start pulsating.

    And finally I move the character behind this tree.

  • No, don't do that. Use "Line of Sight" behavior.

    Player has Line Of Sight to Enemy ...........

    Or invert it to check if player doesn't see enemies.

  • Use newline expression.

    For example: Text Append newline & "New sentence"