Guys, how do i make scroll chat?

Get help using Construct 2

Post » Tue Nov 22, 2016 10:24 am

Guys, hi everyone!
Here is the problem-> I've created a photon-based multiplayer game and it's has a chat. so i want to make such thing - on incoming or outgoing messages it should be created some sprite as a background and text object with message text. as in viber or whatsap and they must be scroll-controlled, for i can see the history of chat. any ideas?

in this momnet it's made by using textbox as text area. but it's looks like a piece of shit.
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Tue Nov 22, 2016 1:11 pm

Refer to the Multiplayer chat example included in Construct 2.

Go to File -> New -> Multiplayer chat example

In the "Chat event" event sheet, under the group "Chat log", you can see that it uses a [b]Textbox, set to read-only, where you set the text in a function to "Self.Text & newline & Function.Param(0)" and scroll to the bottom.

Each time, you want to add something to the chat, call the function with the Parameter containing the text you want to add.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Tue Nov 22, 2016 1:23 pm

No man, it's the same shit =/
At now i using exactly this. (self.text and so on).

and i need - such scroll, as in messengers (viber, hangouts, whatsapp) - when 'on any message' there is creating new sprite blok with text object on it and it's scrolling. get it?
for example ==>>> Image
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Tue Nov 22, 2016 3:41 pm

so many views but still no help in use =/
more suggestios?
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Tue Nov 22, 2016 6:34 pm

up
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Fri Nov 25, 2016 8:35 pm

Sorry, but we have a private life too and don't spend our time waiting for someone to post a thread to answer it immediately.

I'm working on it, just so you know.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Fri Nov 25, 2016 9:36 pm

There you go:
https://dl.dropboxusercontent.com/s/y4d ... atsUp.capx

This is only sending stuff, not including receiving messages.
I did it as fast as possible, since you are apparently in a hurry.

But adding it won't be hard.
(if you need help though and got the time, tell me)


[EDIT] Updated link to .capx with requested scrolling
Last edited by randomly on Wed Dec 07, 2016 12:34 am, edited 4 times in total.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sun Nov 27, 2016 6:56 am

oh my god! thanx man!
But link is inactive.
404 error =(
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Sun Nov 27, 2016 4:41 pm

Sorry about that, I edited my post, link should work now.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Mon Nov 28, 2016 11:27 am

@randomly great example!
but how ca i make it scrolling by touch (for examle - when i need to read a history of messages)?
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Next

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests