ID:232285
 
(See the best response by Xerif.)
I made my own character through paint but i do not know how to copy and past him to the game maker. Also i went thorough my game step by step and the mapping system was good but when i run my game i do not see it at all. can someone tell me what i possibly did wrong.
Do you have the player in an icon file?
Usually sprites and tiles are stored in what's called a DMI.
It's esntially a glorified PNG image.

To assign the player an icon, do this.
NOTE: // is the start of a comment, you don't need these.
mob/
// mob is the default 'moving characters' in your game.
// all npcs, players, monsters, etc. are of type mob.
icon = 'player.dmi'
// sets the player's icon to player.dmi
// when they login, this will automatically be applied.


Check out more here:
http://www.byond.com/docs/guide/

Specifically: http://www.byond.com/docs/guide/chap03.html
it is in a dmi file but. I set it as an animation. is that ok?
Animations are just the type of icon.

Animations: When an tile is in this state, that means that whenever the character is moving it should show this state.

If you turn animation off, and have NO animation state, then the character will either just slide around, or constantly looking to be moving in place depending on the icon.
ok well i got all that done and in good position. it is just when it says in chapter one of the guide after mapping hit run. I run the game and do not see my character nor what i mapped at all. I just see a black screen.
You need to locate the player and place them on the map.

Since I don't know what exactly your project looks like, add this to the Login()
/mob/Login()
src.loc = locate(1,1,1) // locate them to coordinates 1,1,1 on the map.

that diden't work either
There may be something else in your code that's interfering.
Are you starting with a clean slate project?

You need to be way more descriptive than 'it doesn't work'
Click on the little box next to the Map file you created in the File tab to make sure you're including it. Then run.
this is what i have so far

/*
These are simple defaults for your project.
*/

world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default

view = 6 // show up to 6 tiles outward from center (13x13 view)


// Make objects move 8 pixels per tick when walking

mob
step_size = 8


obj
step_size = 8


turf
grass
icon = 'grass.dmi'
wall
icon = 'wall.dmi'
density = 1
steel
icon = 'steel.dmi'
mob
icon = 'person.dmi'
mob/Login()
src.loc = locate(2,40,1)

that is in the environment file .dm
You need to put your code in DM tags to make it readable.
it is already in a DM tag
In response to Disasterousclown (#11)
Disasterousclown wrote:
it is already in a DM tag

he means <dm>CODE HERE</dm>
oh..... my bad
  turf
grass
icon = 'grass.dmi'
wall
icon = 'wall.dmi'
density = 1
steel
icon = 'steel.dmi'
mob
icon = 'person.dmi'
mob/Login()
src.loc = locate(2,40,1)

like that
Bro. Check if the little box next to the map file has a check mark on it.
it is but it still didn't work.
Is till need help here. when i run my program the screen is still black
Best response
This is because you did not call the inherited procedure.

mob/Login()
..()
src.loc = locate(2,40,1)


Add a "..()" directly below the Login() proc. This calls the inherited procedure and allows Byond to set up your screen, and whatever.

Feel free to page or MSN me if you have any other problems.

y_demil@live.com

~Xerif.
that did not help nor work
Page: 1 2