so basically like this?
This is a good example and sorry if giving you the code wasn't what you wanted:
elements.property(elements.DEFAULT_PT_URAN, "Properties", 0x6401)
local function Radioactive(i,x,y,s,nt)
local collx = math.random(-1,1)
local colly = math.random(-1,1)
if tpt.get_property("tmp", i) == 0 then
tpt.set_property("life", 120, i)
tpt.set_property("tmp", 1, i)
end
if tpt.get_property("tmp", i) == 1 then
if tpt.get_property("life", i) == 0 then
tpt.create(x+collx, y+colly, "neut")
tpt.set_property("life", 120, i)
end
end
end
tpt.element_func(Radioactive, tpt.element('uran'))
I still dont understand how to put the red box :P.
thanks for the help everyone! XD
click the thing on the bottom that says "html" (pic 1) then press enter and add a <code> before your code and </code> after your code (pic 2)!
pic 1:
pic 2: