dop2000's Forum Posts

  • Drag here with mouse:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I must admit, I didn't have time to read and fully understand your message. But I suggest you move events 15 and 16 inside the "For each Blue_Unit" loop.

    Check out this demo:

    howtoconstructdemos.com/how-to-limit-the-angle-of-view-for-turret-behavior

  • Not sure what you mean. Of course the files are not on the layout, but you should be able to load them in any layout you want. So I prefer to pre-load all files in the Loader layout (while I display game logo), and after that move to the main game menu.

  • If the tiles are sprites you can simply use another invisible sprite with a circular collision polygon. And pick all tiles overlapping that sprite.

    Or you can pick by evaluating distance to tiles:

    System Pick Tile by evaluate distance(startX, startY, Tile.x, Tile.y)<radius

  • I usually load all required files in a Loader layout. Once they are loaded, you can continue to the main game screen.

  • I think what OP meant was something like a brush stroke:

  • Instead of events 12 and 13 try these:

    12
    On every tick -> Red set animation "Unseen"
    
    13
    Blue Selected=1
    Blue has LOS to Red -> Red set animation "Seen"
    
  • 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)))