pirx's Recent Forum Activity

  • 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?

  • 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.).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

pirx's avatar

pirx

Early Adopter

Member since 20 Aug, 2013

Twitter
pirx has 2 followers

Trophy Case

  • 11-Year Club
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies