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.
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
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
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?
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.
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.
Edited by the Author.
n/a
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
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.
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)