The Daily Click ::. Forums ::. Klik Coding Help ::. How do I switch frames and still stay connected?
 

Post Reply  Post Oekaki 
 

Posted By Message

Micke



Registered
  25/12/2003
Points
  5
25th December, 2003 at 12:51:35 -

I've tried to make this work but whatever I did didn't seem to work.

I have 2 frames, in the first frame I have the MooClick extension and the user can type in the name he wants to use and the IP he wants to connect to. And also a button so that he can actually connect. But my problem is; after you've pressed the button and connected I want to change to my second frame where the player will be but when I switch frames the MooAPI terminates my session and disconnects me. I don't know what to do, I've tried everything I could think of.

Can anyone help me?

*EDIT* Oh, excuse me if this is already in the forum but I couldn't find it.

Image Edited by the Author.

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
25th December, 2003 at 15:10:01 -

does making the object global make any difference?

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Micke



Registered
  25/12/2003
Points
  5
25th December, 2003 at 15:50:41 -

Nah, I still get disconnected.

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
25th December, 2003 at 16:04:09 -

couldn't you just make it connect on the game screen instead of the previous one (the one with the button)?

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Micke



Registered
  25/12/2003
Points
  5
25th December, 2003 at 17:05:41 -

Sure, I could do that but that would still not solve my problem since I would switch frames anyway when I changed level.

 
n/a

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
25th December, 2003 at 17:26:32 -

you could get the players Name he typed in the previous frame, and hes IP address.
and when the frame starts it automatically connects the player to the server?

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Activ8games



Registered
  02/07/2003
Points
  463
25th December, 2003 at 18:52:10 -

Im no expert on moo but try this.

In the first frame, make some edit objects and what not for the user to enter the screen name and other stuff. Don't place the moo extension in this frame.

Instead, pass the information from the first frame to the second using global values or shared data. Then, place a moo extension in your second frame. Use the information transfered from the first frame to connect the user.

Hope this helps.

Image Edited by the Author.

 
Vote Quimby!!!

Micke



Registered
  25/12/2003
Points
  5
26th December, 2003 at 06:43:00 -

Maybe that could work but when I would switch frames when I'm "in game" I would still get disconnected.

*EDIT* Isn't there a way to make the MooClick extension global? I know you can doubleclick on the MooClick icon and choose "global.." but that doesn't seem to work for me.

Image Edited by the Author.

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
26th December, 2003 at 14:43:16 -

You don't need to make mooclick global, you can use a couple of global strings like Crystal Clear said:

"you could get the players Name he typed in the previous frame, and hes IP address.
and when the frame starts it automatically connects the player to the server?"

To do that you create two strings in the first frame, set them to global in their properties and then you paste them into the 2nd frame. When the player types their username\password into the edit boxes you transfer it into the global strings. Then in the next frame you get mooclick to connect with the first strings text (the username) and the password will be in the 2nd string.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Tina Petersen



Registered
  19/09/2003
Points
  350
26th December, 2003 at 16:25:14 -

And again! and again! and again! for every level! if ur afraid of loosing scores or anything! let the server host the data! and first erase them when a Trigger effect for Player Leave is recieved!

 
- Eternal Life, Or Your Money Back -
http://www.befun.dk/
Currently looking for a home (team)

Micke



Registered
  25/12/2003
Points
  5
26th December, 2003 at 16:58:03 -

Thanks everyone. I'll try this one out.. as soon as I have the time to do it.

 
n/a

Sage



Registered
  02/01/2004
Points
  43
2nd January, 2004 at 16:30:10 -

When you make the MooClick obhect Global, are you putting it into the next frame? I dunno it's just a guess. I've never done any online stuff.

 
-Sage

Beachbabe



Registered
  26/06/2004
Points
  10
1st July, 2004 at 09:19:09 -

HEY!!! Does anyone have a good game with mooclick for an example???

can you please email me @ mattlisdman123@hotmail.com and ill advertise your games on my VERY POPULAR website...

www.therealshit.tk

 
n/a
   

Post Reply



 



Advertisement

Worth A Click