ID:150027
 
hi. this time its door animations.

no errors this time too.

heres the code:

turf
door
icon = 'door.dmi'
icon_state = "closed"
density = 1
opacity = 1
verb
Open()
set src in oview(1)
icon_state = "open"
density = 0
opacity = 0
Close()
set src in oview(1)
icon_state = "close"
density = 1
opacity = 1


the problem:

the image keeps repeating itself over and over again when I open it or close it.
your gonna have to have 4 icon states. 1 for the animation, and 1 for the stay still image of opening and closing. Then just use a flick() proc to flick the door through the animation. Flick() plays the animation ONE time throughout its entirety. After you use flick, you will change the icon_state to the still image.

FIREking
In response to FIREking
now i get

flick: missing 2 arguments (found 0)
In response to Teengohan4
You have to add arguments to flick() I suggest you look it up in the reference.
In response to Teengohan4
wooo wee i almost had a heart attack from laughing at that one.

keep up the good work!

FIREking
In response to FIREking
lol. yet......................................................... ..........................................................................................................ITS NOT WORKING!!!!!!!!!



PLZ work on the code instead of telling what to do.i get no errors but it isnt doing what i want it to do.

turf
door
icon = 'door.dmi'
icon_state = "closed"
density = 1
opacity = 1
verb
Open()
set src in oview(1)
flick("open",usr)
icon_state = "open"


density = 0
opacity = 0
Close()
set src in oview(1)
flick("close",'door.dmi')
icon_state = "open"

density = 1
opacity = 1
In response to Teengohan4
Let me ask you this; are you making a dbz game?
In response to Teengohan4
hah, thats even funnier!!!!!!!!!!!

man, you will get no where in programming, and if i could predict the future, i would say no where in life.

try!
check this out oh foolish one.

press f1 in dream maker.
type in the word flick in the text box in the topic tab.
press the enter button.

start reading, and adjust your newly learned knowledge into code. After you get done doing that, review the code and see if everything you did with the newly typed proc, lives up to what f1 window says. and guess what, you are good to go. if it doesnt work, guess what, its your fault. its not my fault, its not nadrew's fault, its not byond's fault. its YOUR fault.

FIREking

p.s. keep the laffin commin
In response to FIREking
I'm laughing quite a bit too.
In response to Nadrew
well fine then......................#$@#$!%#$^%$^#&$%^^@^%^$%^#$^#%^$%^$%^#@$%^$%^$%^^%@#^#@^%^$%^$^$#^&^#!#%@$^*#%^@&@$&$&$@&@$&$&~@%@#%&*#%^&@$&%*^@^%^@#%^$&%&@$^!#@^!!^!@$%&&**(&)&*)(^(%*#*$&(#%&@$&^$^*(^*&$@&@*@%%#
In response to Teengohan4
Wow, what an answer..but seriously are you a making <font color=black>another crappy</font> DBZ game?
In response to Nadrew
if im trying ..... yeah i am



now answer me this , o man of great wisdom.......... i look at thou code of flick , and i get of little power of it .


in other words , it ses in the example like
flick("fight",usr)

what do i replace it with for a door

PS: are my questions funny or stupid?
In response to Teengohan4
Teengohan4 wrote:
if im trying ..... yeah i am



Guess what, you've just lost 70% of the BYOND community's help. Including me.

now answer me this , o man of great wisdom.......... i look at thou code of flick , and i get of little power of it .


in other words , it ses in the example like
flick("fight",usr)

what do i replace it with for a door


Read my first statement

PS: are my questions funny or stupid?


Both, actually.
In response to Teengohan4
ok listen, lets refer to the example to figure this one out

in the specific example, they are making a USR, which is ultimately a client who is controlling a mob, to change his icon using flick. In your example, you want to make an obj, specifically a door, to change ITS icon using flick. the arguments in the flick proc are

flick(icon, object)

icon, would be an icon_state, 0r icon file
object, would be any atom in the environment, which includes, turfs, objs, and mobs

so guess what, lets do the math, and plug em in!

turf
icon = 'door.dmi'
density = 1
opacity = 1
verb
Open()
set src in oview(1)
flick("opening",src)
icon_state = "opened"
density = 0
opacity = 0
Close()
set src in oview(1)
flick("closing",src)
icon_state = "closed"
density = 1
opacity = 1

FIREking
In response to FIREking
look , im just having trouble with the code , ok Nadrew.

and thanx FIREking for your help ok .

Now , im going to leave u both alone and not bother u again
..........................................unless i need more help lol.