grossd's Forum Posts

  • I wrote what seemed a straightforward solution to toggle a sprite's appearance.

    A mouse double click on the sprite, with an additional condition that the animation frame of said sprite is zero, sets the animation frame to 1, and another double click event with the condition that the animation frame is set to 1, sets it to 0.

    However, for some reason both both are executed at a single loop, causing no toggle behavior.

    Its as if the double click is remembers between the event checks.

    What I really, want is to have N number of created sprites and double clicking on one, selects it with a frame, and de-selects all others.

    But, i am stumped ...

  • Yes, i started doing that.

    Basically a "keyboard" at the bottom of the screen, which "injects" text into a text field attached to a sprite.

    Its too bad that i can't get it to look like MIT Scratch ... would love to.

    Perhaps, a javascript solution could be created for having such "text editable sprites"

  • Thank you.

    I tried it but pinned objects lag behind their "parent" object, when those are moved.

    Unfortunately, this makes pin not suitable for having an entry field within a sprite, to interactively set or change a sprites visible name

  • Hello,

    I want to create a graphical field that has a small text entry box -- sort of like in Scratch. But, I can't use hierarchy to create combined group of objects including an input text box.

    Nor, can it be done programmatically, the add child doesn't appear.

    Am I doing something wrong?

    thanks

    Dan

  • Thanks, but I'd rather stay within C3 ...

  • Has something like this been done before in C3

    Tagged:

  • I noticed a nodejs interface (via npm) to prolog is it possible to install this into construct3

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thank you.

    I eventually noticed the create object, and now consistently create a new JSON in each new function body -- with the message to be parsed passed as argument.

    Its more overhead, but i hope like this i don't get into reentrant problems

  • Thank you.

    Yes, good point.

    That is what i eventually did -- a lot of ping pong'ing between the the C3 game and the peer app.

    But, i guess, the hanging problem could be avoided if the communication happens in a seperate thread -- if its possible easily to do

  • I am displaying a listbox and am using the following CSS to change the font size of individual items, but it doesnt work?

    What am I missing?

    .no_border {

    border: none;

    overflow: hidden; /* Hide scrollbars */

    text-align: center;

    font-size:32px;

    }

    Tagged:

  • Hello,

    I am writing some code that receives a websocket message from an outside source that is then parsed by a JSON object.

    Once parsed additional processing is handed off to other functions, which are called and refer to the same JSON object.

    I started to wonder if this is all reentrant -- i.e. when during the processing of one websocket message another one arrives, whether the second set of calls are done via an new JSCON instance, or whether the same is reused / overwritten.

    Tagged:

  • I now noticed Redis and a node.js redis client. Perhaps, a more robust connection to peers is via such an infrastructure.

    Can Redis be used in construct3 via node.js?

    I guess, one would need to import node.js and then install into it the redis client -- can this be done in construct 3.

    And, then i guess I would write some interface functions to use within the game code.

  • Hello,

    I have been connecting a game with a peer system using websockets. However, I now noticed that websockets is purely asynchronous, and at times the peer system needs to request data from the game -- and best if its synchronous request, so that the peer obtains the requested data immediately.

    WebSockets doesn't support that -- i would need to code a synchronous "fetch" via coordinated asynchronous calls.

    However, I then thought that a construct 3 game could in fact run a web server as well, and then a web request could be submitted?

    Can this be done?

    Is there another way to do this?

  • I guess that's how it works -- you always have to do the picking as part of the event condition -- you can't pick as part of the action.

    This means that either event conditions must be parameterized -- somehow -- or event conditions must be duplicated to account for all instance identification cases.

    The latter isn't good because it fixes the number of instances assumed existing.

  • Thanks for asking.

    Instances have instance variables defined. One variable is name, which is a string holding a given, unique name on an instance.

    All instances have a unique name predefined.