allow the player to enter a scene only one time

hello guys
Again i have a problem with a script
I dont have any idea how to do it so let me tell u my prob:

Im making an mmorpg and before the player gets in the main world, i want him to start on a map called island (not the island demo :wink: )

BUT:
the player should only be allowed to be on the island once… After he started the game with his new character first time…

I dont know how to do it
Maybe playerprefs for the player name with a var that is set to false if he was on the island?

I dont know and in new to scripting so please help me :slight_smile:

thanks
Robert

Yes, player prefs is probably what you’re looking for. One option would be to create a ‘bootstrap’ level that reads the ‘has been on the island’ setting from the player prefs, and then loads either the island level or whatever comes after it, depending on the value of the setting.

script? :smile:

pls :slight_smile:

This would be pretty simple really.

Have an exit from your island level, which takes you elsewhere, but no triggers or methods of returning once they’ve left. So they can leave, but never return. Unless they start a new character, who’d start on tutorial island.

Edit: I don’t think PlayerPrefs would be a good idea for an MMO, other than to store game settings perhaps. But certainly no character related information.

maybe an idea but i use smartfox with the tut from http://virtualautonomy.com/ so there is a spawn point

I dont know if i can make it dynamic but else the spawn point would be on the island and te char would start there everytime…

Note: i dont know but maybe i can create more than one spawn point…?

I dunno, but if you’re struggling at this point, maybe an MMO is too high a mountain to climb right now?

no no xD

Everything works fine its only a little feature u know…

But its a nice feature an i want it :smile:

So pls any ideas? With a script example?

Thanks :wink:
Robert

Like I said, a simple collision and load a new level. How you deal with the rest of that, including placing the character, it’s data etc. will depend on how you’ve got it all working in the rest of your game if this is just a little feature that doesn’t work.

OnCollision Application.LoadLevel (“newlevelafterisland”)

Something like that.

does anyone has enough experience with smartfox to tell me how i can do it?