Hello guys, i need your help. I am currently trying to make my title screen show up and than make it follow up by the next screen where it lets u choose the option new game and load game. But when i try it does not show up. In the dme it shows up for like a few seconds when i click run in the option and than goes away without me clicking. While in the dream daemon it does not even show up and straight goes to the game. (Btw its hu2 code but this is because im making a seperate server differntial from the actual server)
Aug 29 2015, 3:19 pm
Best response
|
|
Nobody can help you without seeing the code in question.
|
aight bro here.
turf TitleScreens density=1 MainTitle icon='ArsilTitle.jpg' Click() //when they click on the title screen we want to log them in! usr.loc=locate(9,8,13)//send them to the new/load title NewLoad icon='ArsilNewLoad.jpg' //these next 2 are buttons that we overlay onto the new/load screen NewButton Click() if(fexists("Players/[ckey(usr.key)].sav")) //check if they have a file if(alert("You Already have a Character. \nCreate a New Char anyway?","File Detected","New","Cancel")!="New") return usr.loc = loc //if they have a file make sure they want to create a new char! usr.loc=locate(290,52,1) //locate them to the world tornument location LoadButton Click() usr.LoadProc() //runs the Load Proc which can be found in the SaveSystem.dm File if(fexists("Players/[ckey(usr.key)].sav")) else //if they didnt have a file alert(usr,"No File Found","Load Error") //give them notification |
In response to Sayainarsil
|
|
Sayainarsil wrote:
aight bro here. turf |
The objects aren't what we need to see. We need to see the login process.
What do you have the default mob set to for the world, and what is the action taken on Login() to place them at the title screen? |
In response to Ter13
|
|
Uhhh I'm not really a experience coder u could say I'm not even a coder at all but ill tell you what i did to place them at title screen. All i really did was write one code
src.loc=locate(9,8,12) this is to place them at title screen. if u cant understand what I'm saying my fault (because I'm not a coder) but if you guys could really assist me i would team view with u guys! |
In response to Sayainarsil
|
|
In dream maker, go to the menu that says "edit", open find and replace, search for "Login(", and show us that. Either you have Login() defined under the wrong mob type, have the wrong/no mob type for world.mob, or aren't sending them to the location inside of mob.Login()
|
mob/Login(/**/) yes ik most of this is hu2 code i stated that before but im making it much more differnt. mod edit: <dm> tags |
In response to Sayainarsil
|
|
Please wrap your code snippets in <dm> tags. Otherwise they're flat out unreadable.
<dm> Like this. Your code goes here! </dm> |
In response to LordAndrew
|
|
Oh ok my bad!
|