Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / [Multisync] Implementing chat within main program

Author
Message
Xsnip3rX
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 28th Jun 2012 20:37
YES i know this is a noob question, but i could use some help, here is my entire code.

All it really does is flicker every time sync is called, the chat doesn't stay on screen, and i would like to make it that the chat is only called upon once you press a certain key.

if anyone could help me without trolling me TOO bad i would greatly appreciate it.

Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 28th Jun 2012 23:52 Edited at: 28th Jun 2012 23:53
here is a simple OnEnter key events i made for you.
it includes
1) if enter is not pressed
2) if enter is clicked
3) if enter is pressed
4) if enter is released




edit:
hello to u again simon. long time no talk.

Advanced Updater for your games!
Xsnip3rX
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 29th Jun 2012 00:18 Edited at: 29th Jun 2012 00:22
Kenny :p not Simon, but close enough and hey how you been? :p

Also, the above code is what i have in my program, minus the cls, i still face the issue of the chat not being visible unless the screen is refreshed or i hold down enter or something like that, AND, i want to toggle the chat being visible.
Xsnip3rX
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 29th Jun 2012 01:34
Bump, sorry, i need this solved ASAP please.
Xsnip3rX
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 2nd Jul 2012 03:44
BUMP!!! i think it's only fair to warn people i will bump this once a week until i get help with it >.>
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Jul 2012 06:38
Nowhere in your code do you host the game. In order for computers to be able to connect to each other you need one host, and the rest clients.

Further, you also try to send data with multisync before you set up the connections. I don't think that's going to work.

I modified your code to this:



I can't test it though because you didn't supply any media.

TheComet

Xsnip3rX
19
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 2nd Jul 2012 21:09
The hosting application(Server) is a different Application, but thank you i will try it out ASAP. and inform you if it worked.
TheMeq
13
Years of Service
User Offline
Joined: 5th Sep 2012
Location: Nottingham
Posted: 7th Sep 2012 15:13
Would you not create a flag for it?

like (pseudocode)



Or something like that?

10 PRINT "Hello World"
20 GOTO 10

Login to post a reply

Server time is: 2026-07-07 12:28:09
Your offset time is: 2026-07-07 12:28:09