Help me in simple chat

Get help using Construct 2

Post » Wed May 08, 2013 11:18 am

I want to make very simple chat follows this principle:
1. Break chat message into many string.
2. Each len(string) <= 20.
3. Move all existed text objects up 16 pixels
4. Create text object at bottom
5. Set text for new text object = string

Here is my event sheet



My capx herehttps://www.dropbox.com/s/nxxw3fdi2sxur4t/chatTest.capx

But it doesn't work

Help me urgent please..??

Thank in advance
B
11
S
2
Posts: 73
Reputation: 1,438

Post » Wed May 08, 2013 3:31 pm

Hi @hoanganh17 - something like this should work for you:

ChatTest (web preview)
ChatTest (capx R128.2)

If there's a word in the chat that's longer than 20 characters, it is put on a single line. You may need to adjust that depending on your purposes.

Hope it helps!
B
9
S
3
G
4
Posts: 63
Reputation: 3,083

Post » Thu May 09, 2013 7:46 am

@rogueNoodle

Thank you very much. Your demo works perfect.
But problem here is I can't open your capx. I get error message as image bellows. Could you please give me a capx in stable version...???




Thank in advance
B
11
S
2
Posts: 73
Reputation: 1,438

Post » Thu May 09, 2013 8:26 am

---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:

ACE table: adding parameter after calling ACETable::Done()

Condition: !finished
File: c:\c2\source\exporters\html5\..\..\common\ERAHelpers.h
Line: 337
Function: void __thiscall era::ACETable::AddParam(enum era::ParamType,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,int)
Build: release 128.2 (32-bit) checked
Component: HTML5 exporter
(Last Win32 error: 0)

You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
---------------------------
Abort   Retry   Ignore   
---------------------------
B
11
S
2
Posts: 73
Reputation: 1,438

Post » Thu May 09, 2013 9:18 am

@hoanganh17 - Unfortunately there's not much I can do as it's not possible to save a .capx file to an older version. Here's a screenshot of the events though, if that helps:



One thing that you can't see from the event is that there is a "destroy outside layout" behaviour on the text objects...
B
9
S
3
G
4
Posts: 63
Reputation: 3,083

Post » Thu May 09, 2013 10:11 am

its possible to chat with someone?
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu May 09, 2013 11:08 am

@delgado: Yep, if you put websocket in background of plugin or uses chat plugin of someone ..:)
B
11
S
2
Posts: 73
Reputation: 1,438

Post » Thu May 09, 2013 2:46 pm

@hoanganh17 its easy to make this?
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Fri May 10, 2013 8:45 am

A quite easy, you can search websocket plugin in this forum and find out how to do...
B
11
S
2
Posts: 73
Reputation: 1,438

Post » Fri May 10, 2013 9:07 am

@rogueNoodle

One more time I would like to say thank you.

It's working fine...:)
B
11
S
2
Posts: 73
Reputation: 1,438

Next

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, zenox98 and 27 guests