ID:155087
Sep 21 2011, 8:48 pm
|
|
how would you make a explosion where it would make the ground it explodes on a circular shape of dirt afterwordslike bare miniumim coding kind of code cause i suck when it come to some super complex code
|
In response to Hassanjalil
|
|
true that works but it makes more of a square then a circle
|
In response to Mastergamerxxx
|
|
obj |
How about you simply do this?
var/range=6 |
I dug this out of one of my projects:
proc/Distance(atom/M,atom/N) Notice my comment with the code says where it came from. I try to do that so if I ever have a situation like this I can say whose it was. I've used this proc before and it's brilliant! Couldn't ask for a smoother ring. You'll have to play with it to fill in the whole circle though. I was using this code to make a sort of druid ring dynamically. Then I decided on something a bit more simple and scrapped it, but I still have the code: proc/findspot() |
In response to Hassanjalil
|
|
Or he could just make one big crater image and offset it.
But this is more of how to make a multi-tile crater effect, not a circular explosion. |
for(var/turf/T in oview(5))
T.icon_state="Dirt"icon_state