In my trails of mapping and creating my first game, I thought:" It would be cool to add doors". I remember that from "Step in Byond" and "Your First World" that bumping and the door proc or what ever. Any one know a simple way to use a code such as these to make doors?
May 26 2013, 6:54 pm
Best response
|
|
this is what I use to make doors, works pretty well but is probably a bit more complex than what your looking for. this is a whole demo, all you would need would be the icons and icon states and a map and this would work.
|
In response to Headshot007
|
|
Density is by default 0 (1 for mob) and opacity is by default 0.
~Deathscyth |
In response to Headshot007
|
|
why is there a D. in front of icon_state, density, and opacity?
|
In response to Thedeadwarrior123
|
|
In the Bump() procedure, he's specified an argument named D of type /turf/doors. This argument will behave as a local variable to the function, allowing you to access properties of D. D.icon_state for example, allows you to set the state of the particular door the player bumped into, and so forth.
|