Any ideas for saving chat history?

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)