pirx's Forum Posts

  • I agree. The event filtering can be useful occasionally but most of the time it ends up confusing me.

    I'd much rather use an 'ordinary' search which would just jump me to the searched string.

  • Hi,

    I'm currently using a 9-patch for making speech bubbles but this can be cumbersome (e.g. resizing the bubble according to TextSize needs a 0.1s wait because of rendering timing etc.) so I thought I'd use a <div> plugin to display them. This works great but my elements now float above everything else.

    I know this is by design but I was wondering if this is intentional in HTML5? I mean, is it done for security reasons or is it an overlook that will be resolved in like HTML6 or something? Using HTML directly as sprites could provide nice vector capabilities but this floating thing can be seriously limiting.

  • rexrainbow Great!

    Now, one more quiestion. It's not exactly clear to me how is data stored inside the Item Table plugin. Does it completely refresh every time on "items received"?

    I'm not sure if I'm doing this right.

    For each story_title (a text object) there is an instance variable containing the objectId of its respective story (a parse object). When I click different stories and then go back and do this again, sometimes what is read from the Item Table is the data of the previous story as if it didn't update.

    Note: if I change this to on received -> for each object id -> *curitemcontent* then it only interacts with the first received data ignoring the subsequent request.

    Could you point me to the correct path for this to work correctly?

  • Hi,

    I'm making a chat. So I have a layout which draws speech bubbles like any sms or chat app (whatsapp, messenger etc.).

    The thing is when I leave the layout/app the chat history is lost, so I need to recreate it upon <start layout>. Since there are multiple contacts/chat rooms I can't just use the <save game> feature (it would save the whole app, i.e. the contacts list on another layout as well which is undesirable).

    In short, I need to recreate all previously displayed speech bubbles in the chat on request. The most obvious way would be to save all bubbles with parameters (text, position, size etc.) on the go into JSON and then load this JSON and redraw them any time the layout is launched in the particular context. This is a bit of a pain in the butt however. What would be really useful here would be a "save layout state" feature but there's no such thing in C2.

    So... anybody got better ideas?

  • pirx

    Thanks for liking these plugins.

    1.

    You might have two or more item table instances, i.e. create a new one or have many item table object (type), for each kind of data reading, and each responded data will be stored in item table instance. Item table plugin is not only a data receiver, but also a data container, imo.

    UserNameTable -> getItems(some data)

    AddressTable -> getItems(some data)

    UserNameTable :OnReceived

    AddressTable :OnReceived

    2.

    Read userID by "Expression:UserID", it is not login now if this value is "".

    1. Oh, that makes sense. The previous Parse plugin which is now deprecated implemented tags, but I actually like the idea of different instances used for different purposes.

    2. Will it "know" when the player is logged out server-side in the middle of a game? Or does it update only during login?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    Thanks, these plugins are great. Some suggestions concerning the Parse plugin.

    First, it would be really nice if it supported tags to identify requests.

    What I mean is a situation like:

    ItemTable -> getItems(some data)

    ItemTable -> getItems(some other data)

    ItemTable:OnReceived -> do something [at this point the game "doesn't know" which request came back first]

    It would be useful to be able to do it like:

    ItemTable -> getItems(some data) (TAG usernames)

    ItemTable -> getItems(some other data) (TAG addresses)

    ItemTable:OnReceived(TAG usernames) -> do something

    ItemTable:OnReceived(TAG adresses) -> do something

    Secondly, it would be great if the Auth plugin was able to check if the current user is properly logged in (in case something went wrong, the session expired etc.).

  • pirx

    Expression:LastFetchedItemContent is used after "Read by object ID".

    See the "Retrieve items" section to retrieve rows -

    + (itemtable) Condition:On received

    + (itemtable) Condition:For each item

    - (browser: log) (itemtable) Expression:CurItemContent

    Thank you rexrainbow, it works great!

  • Hi,

    I've got the following problem with Parse. What I want to accomplish is to fetch a random user for whom the column "ready" is set to "yes". The itemtable plugin works well, and I can fetch the current user fields no problem. However this doesn't work:

    The notifications should display the fetched user's username (itemtable.LastFetchedItemContent("username")) but only show 0. Why is that?

  • Hi,

    How do I support the back button on an Android device?

    I tried using Browser -> On mobile back button pressed but it just quits the app wherever I press the button. I would like it not to quit the app but to change the layout instead.

    Is there a way to achieve it?

  • Hi,

    As in the title. I'm looking for a way to display the emoji that are included in Android by default (accessible by the emoji keyboard).

    I'm guessing I should set my Text object to use the default native system font and insert 'emoji' characters somehow.

    Any thoughts on that?

  • Need for Fszt! A classic arcade game. Still requires some tweaks but fully playable.

    Just submitted so just a couple of plays so far.

    http://www.kongregate.com/games/lasercomputer/need-for-fszt

  • I see. Indeed I ran into some difficulties in the past because my apps 'thought' they were online when connected to intranet. I guess I'll write a plugin that pings Google or something like that. Thank you for the info Ashley.

  • Problem Description

    When previewing in Chrome, Firefox and mobile compiled with Intel XDK the behaviour Browser -> is online always returns true. On IE it works fine.

    Description of Capx

    A very simple test of the behaviour in question. Here's the content:

    Steps to Reproduce Bug

    • Step 1 Run the capx.
    • Step 2 Disconnect the internet.

    Observed Result

    The text label still says "connected". Apparently the condition returns true even without the connection.

    Expected Result

    The condition should return false, so that the else condition would fire and the label should change to "disconnected."

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    r196.2

  • bump?

  • Hi.

    For some reason the condition [Browser->is online] always returns true. In the attached file there's a simple test that should show a 'connected' or 'disconnected' notification yet it always shows 'connected'.

    Am I doing something wrong?