dop2000's Forum Posts

  • The common trick to make a split screen is using the Drawing Canvas. But in your case it may be an overkill. I think it will be easier to simply scroll two backgrounds separately (instead of scrolling the layout), while keeping the players stationary.

  • See "Blend Modes" template in Construct 2. You might need to put both the mask sprite and the tilemap on a separate layer and set "Force own textures=yes"

  • Add Flash behavior. Player On collision with bullet -> Player Flash.

  • Make the BlockPerimeter sprite visible, it will help to understand how the code works. When Enemy is overlapping 3 instances of BlockPerimeter, this means a corner where it needs to turn right. When it doesn't overlap any BlockPerimeter sprites, it's a corner to turn left.

    It's a pretty specific demo, because all sprites need to be places with pixel precision. So it will probably not suit your game, but it may give you some ideas.

    • English

      Since blocks can't be rotated in your game, you can do this:

      in a loop try to place the block to each position on the board, performing the same check from "Checking" function. If the check is successful, stop the loop. If the loop has ended and a suitable position was not found, the game is over.

    • На русском

      Когда создана фигура, запускай цикл для каждой клетки на доске, в котором проверяй, помещается ли фигура в данную позицию. Можно использовать такую же проверку, как в функции "Checking". Если фигура помещается в свободные клетки, можно прекратить цикл. Если цикл прошел полностью, а фигура так никуда и не поместилась, то конец игры.

  • No, that was a different problem. Sometimes you upload an image, it gets inserted with "IMG" tag, but it doesn't appear in the post, and you have to edit it and re-upload the image again. This is still happening from time to time.

    Today I can't upload any images at all. I select a file, press "Upload image" button and nothing happens.

    Tom, could you fix it please?

  • I made a demo for another post, take a look:

    dropbox.com/s/g61j043mgr1pkkn/SimpleStickingMob_dop2000_fixed.capx

    Another option is to make a path for each enemy - say, with small invisible sprites. Move the enemy from one sprite to another. You can define several instance variables on these sprites to control the movement, say to change direction, turn or pause.

  • Yeah, noticed the same issue. You need to create a post here:

    github.com/Scirra/Construct.net-website-bugs/issues

  • Yes, Rexrainbow has a great collection of addons for this! You can load csv data into an array, or work with it directly.

    construct.net/en/forum/extending-construct-2/addons-29/plugin-csv-csv2array-csv2dicti-41868

  • gabmusic Great example from mekonbekon, but may be a bit overcomplicated for your job. If you have a small number of fish and fixed odds, you can hard-code them and simply do this:

    Set r=random(100)
    
    if r<=22 Spawn FishA
    else if r<=31.5 Spawn FishB
    else if r<=39.5 Spawn FishC
    ....
    
  • Yeah, Pin is lagging a little and is not suited for fast moving objects. You need to set position on every tick, it shouldn't be much different in terms of performance.

  • Well, it depends on the complexity of the game. If it's a simple motion (like Bullet or 8Direction), instead of the clone sprite you can use a couple of variables relX and relY. Then set the main sprite to table.X+relX, table.Y+relY

    If you need Platform behavior or something like that, then I think the invisible clone is the best option..

  • One method is to use another (invisible) clone sprite, see this example:

    dropbox.com/s/4ng5prk12wcrrqk/ManOnABoat.capx

  • Visual917 What exactly is the problem? Use Browser "On Suspended" and "On Resumed" events, and wallclocktime expression to track the time the game was inactive.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Press F12 in the preview window and see if there are any error messages in the console log. I had a similar problem recently when I disabled some groups with new Functions in them, but still had active events where these functions were called..