ID:172707
 
im making an byond trading game and i have a start up screen when you enter the game. The screen has the following options:

World one
World Two
World Three
Exit

all this is on one map.

i want it that when someone click on World One they go to a nother map and if they click World Two they go to a nother map and when they click World Three they go to a nother map.

Note: I Drew all the images

This is my code:




mob // mob or mobile
Login() // login proc
src.loc = locate(6,6,1) //locates the person to the title screen area...
src << "Welcome to [world.name]!"

world
name = "Ebay" // the world name
version = 1 // the world version
hub = "UnknownPerson.TitlePageDemo" // where it is on the hub
view = 6 // how many tiles you want to see. Note that you will have to change the size of the title screen if you change this. You will also have to locate in a different place...
turf = /turf/Grass // the default turf
mob = /mob/Player // the default mob or player

client/New() // when they log in...
world << "[src] has joined!" // alert the world
..() // does the default commands
client/Del() // when they log out...
world << "[src] has left!" // alert the world
..() // does the default commands

turf // turf
PlayNow // the name of the turf
icon = 'PlayNow!.bmp' // the icon of the turf
density = 1 // if 1, you can't walk through it
Click() // if you click it...
usr.loc = locate(1,1,2) // locate to the cordinates of 1 1 2
usr << "You have joined the game!" // alert them that they joined the game
turf // turf
Ebay // the name of the turf
icon = 'ebaysign.bmp' // the icon of the turf
density = 1
turf // turf
lineup // the name of the turf
icon = 'lineup.bmp' // the icon of the turf
turf // turf
lineright // the name of the turf
icon = 'lineright.bmp' // the icon of the turf
density = 1
turf // turf
world1 // the name of the turf
icon = 'world1.bmp' // the icon of the turf
density = 1
turf // turf
world2 // the name of the turf
icon = 'world2.bmp' // the icon of the turf
density = 1
turf // turf
world3 // the name of the turf
icon = 'world3.bmp' // the icon of the turf
density = 1
turf // turf
black // the name of the turf
icon = 'black.bmp' // the icon of the turf
density = 1
turf // turf
black1 // the name of the turf
icon = 'black1.bmp' // the icon of the turf
density = 1

exit
icon = 'exit.bmp'
density = 1
Click()
switch(alert("Are you sure you want to exit [world.name]?","Exit?","Yes","No")) // alert them in a box if they want to really leave
if("Yes") // if they want to...
usr << "Suit yourself!" // alert them "suite yourself!"
del(usr) // logs them off
else // else (that means if they click no or anything else)
usr << "Thanks for staying" // thank them for staying
ggggg
icon = 'turfs.dmi'
icon_state = "ggggg"
layer = 5 // makes it at the top layer because you don't want to see yourself at the title...
density = 1 // can't walk through it
White
icon = 'turfs.dmi'
icon_state = "white"
layer = 5
density = 1
Yellow
icon = 'turfs.dmi'
icon_state = "yellow"
layer = 5
density = 1
Grass
icon = 'turfs.dmi'
icon_state = "grass"
mob
Player

icon = 'Player.dmi'


Can anyone help me out?
i believe this is covered in byond bwicki...lemme see if i can find the link...

http://bwicki.byond.com/ByondBwicki.dmb?TeleportingMobs

a basic technique
Don't use .bmp files.