![]() |
single player. - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: single player. (/showthread.php?tid=2348) |
single player. - genusis - 06-11-2008 Well i have changed everything in 3.60 from characters to account and i was wondering how would i set this. Code: Function GetPlayerX(ByVal Index As Long) As Long Code: Sub SetPlayerX(ByVal Index As Long, ByVal x As Long) Code: Function GetPlayerY(ByVal Index As Long) As Long Code: Sub SetPlayerY(ByVal Index As Long, ByVal y As Long) Code: Function GetPlayerDir(ByVal Index As Long) As Long Code: Sub SetPlayerDir(ByVal Index As Long, ByVal Dir As Long) Code: Sub AddAccount(ByVal Index As Long, ByVal Name As String, ByVal Password As String, ByVal Sex As Byte, ByVal ClassNum As Byte) Thank you For your help. Re: single player. - Matt - 06-11-2008 If you're gonna do that, just use the graphic engine in MS. The rest of it is tedious and you can do it sooo much faster from scratch. Re: single player. - William - 06-11-2008 1. Make MAX_CHARS = 1 2. Have a create Account button. 3. When you login with the "account", check server side if it has a player in slot1. If it does send back a packet and log him in right away. If he dont have a char, send him to create char screen. Re: single player. - genusis - 06-11-2008 thank you William that will work good too =] better than redoing it all. Re: single player. - William - 06-11-2008 Or when you create a account, you can send him directly to the create char menu. That way your login button will only be for logging into the game. But both ways are pretty similar. Re: single player. - genusis - 07-11-2008 i like that better than the first one because it makes it easier to code rather than making a new thing where it checks to see if you have a character and if not opens character create screen, so this way you just set it to use character slot 1. for direct login. ^^ thank you William ![]() Re: single player. - carloso - 08-11-2008 Perfekt Wrote:If you're gonna do that, just use the graphic engine in MS. The rest of it is tedious and you can do it sooo much faster from scratch. this. Re: single player. - genusis - 08-11-2008 its much easier to do it William way. just have to add the create new character packet stuff to create account move that create frmnewchar stuff to Frmnewaccount then redo a bit of code to log them in directly using character slot 1 ^^ problem i only have is its been over 5months since i coded anything haha. Re: single player. - carloso - 08-11-2008 genusis Wrote:its much easier to do it William way. just have to add the create new character packet stuff to create account move that create frmnewchar stuff to Frmnewaccount then redo a bit of code to log them in directly using character slot 1 ^^ Why use packets for singleplayer? Why even use a server? :S Re: single player. - genusis - 08-11-2008 Lets see packets are for sending information back in for between something< which if you have a server you have to use something like a packet.> you don't really have to use a server you could make the clients to be connected together but then you still need to send packets to other clients unless its an rpg. but if you are doing an online game i suggest using a server to help stop hacking and taking over your game. Re: single player. - Dragoons Master - 08-11-2008 subject /\ ? Re: single player. - genusis - 08-11-2008 i was just answering his question. Re: single player. - carloso - 08-11-2008 genusis Wrote:Lets see packets are for sending information back in for between something< which if you have a server you have to use something like a packet.> If you're making a single player game its better to not use a server. The only reason MS has a server is so that it can be multiplayer >_>; Re: single player. - genusis - 08-11-2008 its multi player with single character. Re: single player. - Dragoons Master - 08-11-2008 genusis Wrote:its multi player with single character.OHHHHHHHHHHHHHHHHHHHH, that explains a lot xD LOL Re: single player. - carloso - 08-11-2008 Dragoons Master Wrote:genusis Wrote:its multi player with single character.OHHHHHHHHHHHHHHHHHHHH, that explains a lot xD yeah lol. maybe elaborate more next time? ![]() Re: single player. - genusis - 08-11-2008 NVM i figured it out here i made a tutorial for it as well =]. http://web.miragesource.com/forums/viewtopic.php?f=128&t=4710 |