obj |
Problem description: Well, the problem with this is everything works but the only problem is the overlays removing from the turfs, they, however stick and are never removed. Anyone know a quick fix for this snippet?
ID:264334
Jan 31 2009, 10:31 am
|
||
Code:
Problem description: Well, the problem with this is everything works but the only problem is the overlays removing from the turfs, they, however stick and are never removed. Anyone know a quick fix for this snippet? | ||
#1 Jan 31 2009, 1:35 pm
|
||
Yeah. In their New() procs, put in a spawn() delay before deleting itself. And put it at the beginning, right after the ..()
| ||
You're setting overlays and not objects >_>
http://www.byond.com/developer/Theodis/Explosions I'd recommend Theodis's explosions demo :) | |
That is not the demo I need, I need an explosion system that works on turfs as well. As you have tried that demo, you will notice it stops after it hits a dense wall, therefore rendering it useless for me.
| |
Ah... well then instead of using del() in the spawn(), use overlays-="icon" :3
| |
#6 Jan 31 2009, 7:16 pm
|
|
What they are trying to say here is this...
What you are doing to remove the overlays there is just fine, the reason it isn't being done is because the object is being deleted before the spawn() timer is up. When you delete the object it halts any procs that are running 'on' the object if you will. New() belongs to that object, kill the object, you kill any procs inside of it. You will have to either wait to delete the object or handle the overlay removal with a standalone proc. | |
That is not the demo I need, I need an explosion system that works on turfs as well. As you have tried that demo, you will notice it stops after it hits a dense wall, therefore rendering it useless for me. In defense of my library how the explosion behaves is entirely up to the explosion effect you program for it. The demo demonstrates with an explosion effect that does stop with a wall but it's easy to change and have it completely ignore obstacles or pass through weak ones, stop at strong ones, increase in power on other ones, etc. | |