arcalaus's Forum Posts

  • Hi!

    I'm trying to make a simple card solitaire/patience game.

    I created a sprite called 'Card' with instance variables to store suit, number, stack/column, and position inside stack.

    Stacks are stored in two matrices: a 2D matrix containing indices to the cards, and a 1D matrix containing pointers with the number of cards in each stack or column.

    But if I store indices to the cards as UIDs, I find no card when I use Card object condition 'select object by UID', and, if I store indices as IIDs, I always find same card object (Card #0) when I use System object condition 'Select object Card with index X'

    You can take a look at my project at:

    here (10 Mb download)

    Beware it is a 10Mb download, since it contains all images for the cards (they are needed to understand it).

    (If you finally download it, you'll find useful to know the meaning of these Spanish words: Carta=>Card, Palo=>Suit, Numero=>Number, Mazo=>Stack, Columna=>Column, Fila=>Row).

  • I was using r99. I think this could be caused by zooming, as julmust says.

    Here is my last discovery:

    Everything is allright in an exported website (where everithing is smaller), while problem persists at preview. That's funny since I'm using the same browser for preview...

  • �Could layer have changed in runtime?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, they are in a text layer with parallax = 0,0 and scale rate=100 placed at top.

  • Hi!

    I use run-time positioning to take care of window resizing.

    Everything uses to work OK, but Button positioning does not work when I preview with Chrome (Internet Explorer uses to run OK).

    Try this in chrome:

    -Put three buttons (say Abutton, Bbutton and Cbutton) at

    (292, 297), (292, 327) and (292, 357). Size:127,24.

    • On Start of layout, I move each button using this action:

    Abutton SET X TO (WindowWidth)/2-(AButton.Width)/2

    Bbutton SET X TO (WindowWidth)/2-(BButton.Width)/2

    ...

    • ON CHROME, each button appears on a different X position (they should be centered) and shakes slightly. On Explorer, It runs right but the buttons shake also (they shake even afterputting the SET X TO into a "Run Once" event).
    • I tried disabling/enabling pixel rounding, webgl and linear sampling.
  • Many Thanks.

    The "Press F4 to hide/show" message is shown on the (hidden) "Objects and expressions" dialog only.

    I suggest to show it in the expressions window, also.

  • [Please notice this post is in Spanish]

    [English abstract: I know of http://www.xmoggo.com/construct2 listed on http://www.scirra.com/communities . It seems unmantained. I could offer hosting, but I'm not a good hosting administrator. I also know scirra is preparing construct2 translations (they are listed in R99), but I haven't researched about it in the forum].

    En tiempos exist?a el blog xmoggo.com/construct2

    Lo encontr? en la propia p?gina de construct 2, scirra.com/communities

    Parece que no tiene mucho mantenimiento, pero quiz? se le puedan enviar unos cuantos comentarios a su autor para que lo actualice o lo convierta en una comunidad.

    Tambi?n podr?a ofrecerte crear una comunidad (tengo un hosting), pero soy muy torpe manteniendo las actualizaciones de los script php, y casi siempre pierdo el 50% de los contenidos... As? que mejor buscas a alguien m?s competente...

    Por cierto que parece que hay un proyecto de traducci?n de construct. No he le?do en los foros, pero el R99 lleva informaci?n para traductores.

    Un saludo!!

  • Hi!

    After many months without using Scirra 2, I've turned to an updated version of it (Beta Release 99), and now, when I'm writing an expression, I can no longer view the hint window where I selected system functions and object expressions (i.e., now I have to write "sprite.x" instead of clicking in sprite and then on x).

    I had this problem in the past, but then someone showed me how to make it visible. Does anyone know how to do it?

  • But I tried with just 9, also...

    And, Why are the extra 3 not affected by the FOR... loop?

  • Looking on how to refine a bug to send it to "bugs" forum, I found this strange loop behaviour:

    (see example apagada.com/varios/tictactuc/tictacbug2.capx )

    For (N in 0 to 8){

    .. Create object X

    .. Pick instance N {

    .. .. Set property blah, blah, blah.

    .. }

    ]

    No object gets the blah, blah, blah property. If you use, instead:

    For (N in 0 to 8){

    .. Pick instance N {

    .. .. Set property blah, blah, blah.

    .. .. Create object X

    .. }

    ]

    Then all objects get the property, as intended.

    At the other hand,

    For (N in 0 to 8} {Create object X ...}

    For each object X {Text.append "Blah blah blah"}

    does nothing with text.

    I don't really understand how to use loops in an event-ruled programming language. In fact, I use to add a condition like

    "loopindex(N)>=maximum value" inside each loop to ensure some events execute after the loop.

    Can anyone explain me how to place events in the loop?

  • You can download here a simplified version where a For... loop is used to set animation

    You can clic on any hole to see what is the value of the "AnimationName" property for that hole:

    http://www.apagada.com/varios/tictactuc/tictacbug.capx

    I think the bug is related with the object touching or being outside layout or window boundaries.

  • Look at this capx:

    apagada.com/varios/tictactuc/tictactuc.capx

    1) Drag the ball to any hole in the top row.

    2) Drag the ball to any hole in the bottom row.

    3) Try to drag the ball to the same hole.

    You can see that:

    • In (1), the hole changes to show it is "full";
    • In (2), the hole DOES not change.
    • But (3) shows the hole is not empty.

    Since I "fill" the holes using a "Set Animation to", I wonder if this is a bug. I've tried to make object invisible and then visible again to force an animation change, and I've tried to pause and restart game, but nothing makes the new animation show up.

    Please notice that object animation has changed, I'm sure about that because the only condition used to test whether the hole is empty or not is the animation name.

    (Please excuse my for my bad English)

    Scirra R87, capx tested on Explorer 9 and Chrome. I use an NVidia card, so, if you can't see a bug, then it's on my card.

  • I like the use of rotation in the game. I can't manage to mine the rocks, though.

  • OK, I'll manually turn "invisible" the overlapped text objects, with an "is overlapping" condition.

    What about the second bug? Why do the knight demo movements fail when webgl is turned off? This implies the engine is not detecting the knight is overlapping the right box.

    Is this bug caused by the new "overlapping" condition management in Construct Release 86?

    Edit: grammar improvement.

  • Hi!

    Look at this capx:

    http://www.apagada.com/varios/caballo/src/Caballo.capx

    It contains two very similar layouts, but, in one of them (layout "demo"), the text of inner layer shows up across top layers, while in the other (layout "caballo"), all works as expected.

    This buggy behaviour is stopped by disablig webgl, but, then, something stops the events from recognizing where is the little chess knight and where should it go.

    Could anyone help me?

    Many thanks, and excuse me for uploading the entire capx: I wanted you to see how all worked ok in another layer!