arcalaus's Recent Forum Activity

  • I include a solution

    Link to .capx file (required!):

    apagada.com/varios/jigsawpuzzle/puzzle_approach_3.capx

    (any other capx would work)

    Steps to reproduce:

    1. export file. Minified or unminified script.

    2. try to run it

    Observed result:

    black screen in browser it does not run. "cr_createruntime" not found

    Solution:

    Manually search and replace "cr_" for "cr." in index.html.

    Expected result:

    Browsers affected:

    ALL

    Operating system & service pack:

    Construct 2 version:

        r126

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I just noted my cs2runtime.js is empty, so this is definitively a bug.

  • Hi!

    I have an application that runs fine, but crashes when exported to Web app or Chrome. I don't know if it is a bug or it is something in my app.

    The javascript error displayed is "cr_createRuntime' undefined".

    My construct version is r126 (64-bit).

    I'm using the canvas plugin. Does anyone know if this canvas uses to crash?

    Regards,

    Arcalaus.

  • OK, I followed the way of adding an invisible object pinned to the first. But now I have to fight another difficulty:

    See my sample file at

    apagada.com/varios/jigsaw-tests/puzzle.capx

    When you drag a piece near to the right neighbour, the neighbour is pinned to it, BUT:

    1) You can't drag the neighbour to move the block to another piece, since the neighbour is "pinned" and inmovable (i.e. you can only drag the piece you moved first).

    2) When you drag another piece to the block of pinned (stuck together) pieces, you cause some pieces break apart from the block and pin the new piece (instead of adding the new piece to the block).

    Any Idea?

  • (Topic edited: was "Select two objects of same type, how?". See below)

    Hi!

    Continuing with my jigsaw game, I want to test if a piece is near a consecutive piece, and then align them and pin them.

    In Visual Basic, I would select CurrentPiece and Piece(Piece(CurrentPiece.LogicalX,LogicalY+1) and then, if they are "close" according to a given tolerance, I would align them and pin them.

    But I don't know how to do this in Construct. If I do a "Select All" and then look for the left piece with a condition (Compare Instance Variable LogicalY=StoredLogicalY, Compare Instance Variable LogicalX=StoredLogicalX-1), I lost the focus on the original piece. How can I recover the focus so I can pin the first (lost focus) piece with the new one?

    EDIT:

    I can't cast a "Piece pin to Piece"

    Maybe I should add an invisible object, pin it to the first and then pin it to the other one?

  • : I thinked about using canvas (indeed I installed canvas and ImageTextOnSprite at the same time), but, as that lacked some "sprite" conditions, I gave up from using it.

    I passed over the possibility of using a drag and drop behaviour.

  • Hi!

    I want to load a portion of an image into a sprite, then masking it with another sprite.

    I used Pode's ImageTextonSprite to do the first, but I can't do the masking part.

    I tried scirra "destination atop" blending but, since back image is always bigger than the masking sprite, undesired effects appear when two sprites are next.

    (I want to make a jigsaw puzzle, and I have a set of "jigsaw cuts" for the mask, this is why putting a mask near the other one matters).

  • Congratulations to the winners, and Merry Christmas to all.

  • Entry

  • I guess a simple "restaurant game" (like dinerdash or the purbleplace cake factory) can be achieved easily with less than 100 events... depending on the level of detail you want to provide...

    Or you can made a simple memory game (examples available) with a food-theme.

  • Also, you can make your first games with the downloadable sprite pack, or search for free sprite packs (or free art) in the forums.

  • Hi!

    Compare these two action sets:

    a) Repeat 2 {

          System.Create object (Sprite1) at (Sprite2.X,Sprite2.Y)

          Sprite1.Set Bullet angle of motion to (floor(rnd*360))

    }

    b)Repeat 2 {

          Sprite2.spawn object (Sprite1) at point (0)

          Sprite1.Set Bullet angle of motion to (floor(rnd*360))

    }

    While (a) makes 2 different copies of Sprite1 moving at different angles, (b) shows two ovelapped instances of Sprite1 moving at same angle (user sees only one).

    I guess "Sprite2.Spawn Sprite1" does not pick the new instance of Sprite1, while "System.Create Sprite1" does.

    This behaviour should be clarified in manual and in the User Interface Hints.

    (I've tested this with both r112 and r113).

arcalaus's avatar

arcalaus

Member since 9 Nov, 2011

Twitter
arcalaus has 1 followers

Connect with arcalaus

Trophy Case

  • 13-Year Club
  • Popular Game One of your games has over 1,000 players
  • x10
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

17/44
How to earn trophies