obj
Here is my code:
Dummy
icon = 'dummy.dmi'
density = 1
verb
Kick()
set src in oview(1)
set category = "Fight"
var/pbaggain = rand(10,20)
flick("kick",usr)
flick("train",src)
usr.maxhealth += pbaggain
usr.health += pbaggain
Everthing accept the flick for the character works. I know it is the right state, but it doesn't show the flick(and it doesn't seem to try). My guy just sits there he doesn't go blank for a second like he does when I point a flick to the wrong state. Does anyone know how I can fix this?
ID:148473
Feb 1 2003, 11:40 pm
|
|
Feb 2 2003, 3:45 am
|
|
Maybe it is the wrong icon_state.
|
In response to Unknown Person
|
|
It is the right state, like I said before.
|
Jnco904 wrote:
obj I may be wrong about this but i believe you need time to see the icon state. So put a sleep proc in. So its like this: Index | Preferences | Help | Logout [Logged in as Jinjo21] Announcements | BYOND Q&A | BYOND Bugs | Code Problems | Creations | Design Philosophy | Classified Ads | Off Topic | Newbie Central [Advanced Search] -------------------------------------------------------------------------------- [Messages in this thread] Author: Jnco904 Date: 2/2/03 1:40 am Topic: Flick problems Post [link] Next [link] obj Here is my code: Dummy icon = 'dummy.dmi' density = 1 verb Kick() set src in oview(1) set category = "Fight" var/pbaggain = rand(10,20) flick("kick",usr) sleep(20)//so it will play flick("train",src) usr.maxhealth += pbaggain usr.health += pbaggain |
In response to Jinjo21
|
|
1) He does not need to sleep there. You do not understand the code. He flicks the player and another object called Dummy at the same time.
Is the icon state there (Check it again.) Is it a movie? (That way you can set delay.) Perhaps you should try to place it in an independent file? -<font color="#33ff33">Nova</font> |
Chances are, you're playing the kick as a movement state. If this is the case, it won't show the animation, since you're not moving.
-LoW |
In response to Lord of Water
|
|
Ok, for some reason when I hosted the game on the hub it worked fine, and now it works on my pc. O.o Thanks anyway guys. :)
|