Any ideas for saving chat history?

Discussion and feedback on Construct 2

Post » Wed Mar 09, 2016 9:37 pm


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? :)
Posts: 167
Reputation: 3,163

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests