📧 Message Board Archive

sp- untouchable?
I want some gold to become untouchable if a condition is met. What attribute should I change within the golds' script (eg 1gold) to make it untouchable and let Dink walk away? I found out the wrong one locks up the computer. Thanks.......Ric
Re: sp- untouchable?
: I want some gold to become untouchable if a condition is met. What attribute should I change within the golds' script (eg 1gold) to make it untouchable and let Dink walk away? I found out the wrong one locks up the computer. Thanks.......Ric



sp_touch_damage(&current_sprite,-1); //Touchable

sp_touch_damage(&current_sprite,0); //Non-touchable
Re: sp- untouchable?
: : I want some gold to become untouchable if a condition is met. What attribute should I change within the golds' script (eg 1gold) to make it untouchable and let Dink walk away? I found out the wrong one locks up the computer. Thanks.......Ric



: sp_touch_damage(&current_sprite,-1); //Touchable

I tried that and got locked, but I bet if I followed with return; it'l work thanks

: sp_touch_damage(&current_sprite,0); //Non-touchable



Re: sp- untouchable?
: : : I want some gold to become untouchable if a condition is met. What attribute should I change within the golds' script (eg 1gold) to make it untouchable and let Dink walk away? I found out the wrong one locks up the computer. Thanks.......Ric



: : sp_touch_damage(&current_sprite,-1); //Touchable



:  I tried that and got locked, but I bet if I followed with return; it'l work thanks



: : sp_touch_damage(&current_sprite,0); //Non-touchable





Ya, that'll work.  Basically, by not having its touch damage be -1, it will not run the touch proc in the golds procedure.  Or you could have it check for a global in the touch proc.  Maybe even drop gold of a different script, one that doesn't even have a touch proc.  There's many ways, but i'd say changing the touch damage would be easiest.