![]() Jan 21 2008, 9:34 pm
In response to OwnU
|
|
Well then I guess I just don't understand what your problem is.
|
-5 minutes later- Okay I think I might understand. You want me to code something simple until I can't figure out how to do something then ask questions and search around until I get it right, and then so on... until I can code well??
|
yippe!!! I made an iconless and mapless game where you click "Flame On!" and it says "you light into flames but don't burn"
Yeah it sounds like sarcasm but it isn't xD |
OK I made it so you can talk but only to the world... What code do I need to make it only say to view [assuming I can't because there is no map]
|
OK, I got some stuff going. I just made a map [all light green grass] How do I make it so thats where I am when I run it?
|
All you need to do to make a yourself show up on the map is to define an icon for mob.
turf In addition to that, of course, you need a map and the two icons. But to start that is really all you need to put the mob on the map. If you want the mob in a specific place then you can do something like this. turf |
turf
grass icon = 'Turf.dmi' icon_state = "Grass.dmi" world turf = /turf/grass is what i put and i even actually mapped it out all grass and when i click RUN its a black screen |
mob
icon = 'Characters.dmi' Login() icon_state = "Person.dmi" density = 1 I did that and it still is not working. |
try this:
turf |
Didn't work. I think I might be hopeless, there might be a change in what I did because I copyed yours but it said it couldnt find the file so I put this instead.
turf grass icon = 'grass.dmi' world turf = /turf/grass mob icon = 'Characters.dmi' Login() icon_state = "Person" ..() |
Do you have a map? If not, you could have BYOND generate a map for you by setting the variables 'world.maxx' and 'world.maxy' like so:
world |
He has to set the mob's location on the map. Asielen already posted the code.
mob/Login() |
Well that is not quiet what I posted, but basically the same thing.
OwnU, if you still can't get it to work. Start from scratch. |
Programming languages, as the term suggests, are languages. Languages consist of words, that string together in certain ways (syntax) to create meaning.
You first need to learn what individual words are (if, mob, turf, et cetera) and what meaning they have. Then you need to learn how to string them together, and what valid and invalid ways you can string them together. If you do it wrong, thats when you get a compiler error. Thats one way to look at it, anyhow. When people say you need to learn the basics, thats because basic components add up to make something more complex. Sort of like you can combine lego pieces to go from odd, colored shapes to a spaceship if you put them together to look like one. Patience is important, and you'll probably need to make constant use of the F1 reference, the guide and the forums (Preferably in that order) until you've got more experience with the language. The most important, and probably the hardest thing to do is to understand *how* programming languages work. How people learn is often different, but as a general stereotype, experience is king. |