Here is a question I really need to know the answer to. You probably need to be familiar to Cinmon's demo. What code would you reccomend me for making it when a mob falls down onto a harmful object such as a spike it damages them.
Thanx in advance,
Punkrock546 #;]
ID:177854
Jul 22 2002, 1:49 pm
|
|
Here, I edieted the Grav Chek() Proc:
if(A.density == 1)//Highlite This if() in the demo and paist over it. dense = 1 if(A.painfull == 1) src.hp - 10 else return 0 This is untested, but I think it should work. |
In response to Shun Di
|
|
I got these errors...
Cinnom Side-Scrolling Demo.dm:39:error:A.density:undefined var Cinnom Side-Scrolling Demo.dm:40:error:dense:undefined var Cinnom Side-Scrolling Demo.dm:41:error:A.painfull:undefined var Cinnom Side-Scrolling Demo.dm:42:error:src.Life:undefined var Cinnom Side-Scrolling Demo.dm:38:error:GravCheck :undefined proc Cinnom Side-Scrolling Demo.dm:41:error::missing expression Cinnom Side-Scrolling Demo.dm:42:- :warning: statement has no effect Please tell me how to fix... Thanx in advance, Punkrock546 |
In response to Punkrock546
|
|
somewhere ya gotta have
mob var painfull !!! oh wait ignore this post ur using a demo so iduno id check but im at work =D |
-SG [:)]