mrcgkh's Forum Posts

  • In mathematics degrees increased in CCW. But in Construct 2 degrees increased in CW. I wrote the formula thinking in general mathematical way. Simply you can change it like this.

    if abs(Target.Angle-Player.Angle)>180   .... CW

    else   ... CCW

  • if abs(Target.Angle-Player.Angle)>180   .... CCW

    else                                    .... CW

    i think this could work

  • Thanks czar and level1sb

    Drawing a line is fairly simple. I just used a thin image and moved image point to beginning of line. Math part can be used with different types of drawings. But mess is start when you want to draw curves or polygons. R0J0hound created a canvas plugin, but it's not official. I hope that Constuct 2 adds support for this type of drawings.

  • Here is my test game

    http://www.scirra.com/arcade/example/4563/wireframe

    It's possible without plugins. But i have to admit, it's not practical. You can freely modify code. Maybe some one creates a different model

  • I have a suggestion. Manual page for effects could be expanded. Visual representation of all official effects and adding info about their parameters will be very fine.

  • kittiewan's solution theoretically can takes forever. Fisher Yates is a O(n) solution. So it guarantees a maximum n times loop.

  • I developed two versions for jigsaw

    Example 1

    Example 2

    My main target is developing this with one sprite and cutting all the pieces automatically. But i have to said i'm failed. Now both of game depends heavily on photoshop. All the pieces must be cut pixel perfect. For example second games second level has some small pixel problems.

    First i tried with canvas plugin. But creating curvy faces will be very hard.

    Second idea was using masks. In the first example, i used 24 pieces and resolution is 640x480. So you need 24 other mask sprites with the same resolutions. Also all masks have to pinned to different instances. So at least you need 24 instances of background sprite with same resolution.

    But the problems not finished in here. If you use more than one mask blending modes are not very helpful. Because background is pinned and when you drag background also will move. On overlap with other mask you can't see the right effect because between two masks there is a background instance.

    If you have ideas for solving this problem i'll try to do a new one. Thanks.

  • Wonderful

  • Link to .capx file (required!):

    db.tt/pEijxcMV

    Steps to reproduce:

    1. Click on sprite

    2. Click second frame

    3. Try to give a negative value for X or Y position from keyboard

    Observed result:

    Selected frame skips the other frame

    Expected result:

    To give a negative value

    Browsers affected:

    Chrome: yes/no

    Firefox: yes/no

    Internet Explorer: yes/no

    Problem appears before export or preview

    Operating system & service pack:

    Windows 8

    Construct 2 version:

    r123

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also with adding another instance variable for speed, the effect will be more visible

    db.tt/sdHj5aGH

  • Actually their frame rates are 1,2 and 3 second. You can check the instance variable.

    Because of it at every 2 seconds, upper 2 sprites firing at the same moment (because 2 dived to 2 and 1), at every 3 seconds, top and bottom sprites firing at the same moment(3 divided to 3 and 1), and every 6 second all of them firing at the same moment (because 6 divided to 1,2 and 3)

    If you choose different rates you can see it easily. For demonstrating i uploaded a second one

    db.tt/xoSx3uw4

  • Just a possible solution

    db.tt/j1dJYKKz

  • Yes. I uploaded other games to Scirra arcade before. And when exporting to arcade construct creates a game.zip file. I uploaded this file. But when i uploaded to dropbox i export as html5 site.

    If you click top sprite it restarts layout. So it was not working one time. But game has some bugs. Sometimes On click didn't working

  • I didn't used any external plugins. I tried my game on dropbox without problem. But at the arcade site, i only see a blank gray screen.

    On Scirra arcade

    On dropbox

    capx