ID:164275
 
i made a door. i have the player running and everything. but when i run the game and walk through a door, the screen turns black... can someone please tell me how to make the inside of it?

(so basically its making another room...)
The same way you made the outside of it, presumably.
In response to Garthor
but how do i get inside of it, to do what i did outside of it?
In response to Jman9901
See, the problem here is that you said "I made a door," and immediately assume that anybody has half a clue what the hell you're babbling on about.
In response to Garthor
I have half a clue, unfortunately, it's the other half that I need.

So... you want the inside of the house to be somewhere else, so when you walk through the door it warps you there, or do you want the inside of the house to be on the same map as the door, so walking through only shows the inside and hides the outside? I think option #1 is the simplest to implement, and probably better since you have much more freedom when it comes to designing the interior, since you're not limited to the space the house actually takes up.

~X
You're probably changing the usr's location. Since you have no clue what you're doing, I assume you're implementing a demo in your game, programmed to move usr to an unknown location, which *I think* defaults to null?

If there's a chance that you DO know what you are doing, too bad. You haven't given enough information to tell you how to do anything, and I'm too lazy to tell you all the possibilities! :)
In response to Xooxer
well actually ur the only person that hasnt smart commented me on this... but anyways, i want to know how to do the inside of the house, not warping. so, how do i do it?
In response to Jman9901
Yes the latter option #2 is what is implemented in DBZ rips like Legends Reborn and Dragonball: Rebirth Revised, and the former option #1 is what is implemented in Goditz NBOLTS Naruto rips.

I'm new to coding as well and after reading through the DM guide I can only figure out how to do option #1..
In response to Agriff1
well i wouldnt want option 1 cause i just wanna make the inside of a shop. just walk thru the door and the turf changes to the inside of a shop. that simple... i read the demo too and it helped slightly...
ok thanks. ur like, 1 out of 5 ppl that give good advice for games. oh and, inuyasha is the best!
That's is breathtakingly terrible. Using the semicolon there serves to greatly obfuscate the code. You're using usr in Enter(). You're using Enter() to perform an action (which is not what it should do). You're using locate(x,y,z) when tags are SO much better. You're... I don't know WHAT you're doing with the new.x new.y new.z stuff. Suffice to say it doesn't work. You're also modifying loc directly, when Move() should be called for something like this.
In response to Jman9901
But it's NOT good advice. It's TERRIBLE advice. This is my whole POINT.
In response to Garthor
it may be terrible but i know what he's talking about. i can use that as a guide.
In response to Garthor
its the best advice ive heard all day. at least its accurate...
Inuyashaisbest wrote:
the new.x new.y and new.z stuff is just an example of where to put the new location what should be the players NEW x and NEW y and NEW z not leaving them in there :/

An excellent example of non-reusable and inflexible code that's going to result in the programmer having to do a whole lot of extra work for no good reason. Hence: bad.

and if the door is and object what the hell do you expect to move a src? that would move the damn door not the player.

An excellent example of why you should not be providing advice. The first (and only) argument for Enter() is the atom/movable attempting to enter the atom. You use THAT.

Of course, you should be using Entered(), not Enter().

And this brings me to something I missed the first time around: the door is an obj, in which case, normal movement will not call Enter() or Entered(). Either you'll need to rewrite Move(), turf/Entered() or change the door to a turf.
he just doesnt get it, dont worry about it i know what u meant... thanks a lot! =D
In response to Garthor
at least he's providing advice... not arguing over someone's forum topic!
In response to Jman9901
Oh, you want advice?

1) Look up Entered() in the reference.
2) Look up Move() in the reference
3) Look up locate() in the reference
4) Look up tag in the reference
5) Combine knowledge gleaned from reference to make a door that DOESN'T suck.

Or, how about more generic advice:

When asking for help, be REALLY DAMN SPECIFIC. We can't read your mind, and neither can the compiler. If you can't describe in excruciating detail what you want, there's no way you'll be able to program anything anyway.
okay... and thanks for the advice, again...
In response to Garthor
im not gonna argue, just get off my topic!
Page: 1 2