is there a way to control gravity in LUA(like GMBM does)?
thanks :3
now though, anywhere the particle is it spews messages onto the screen saying "coordinates are out of range(xxx,yyy)"
function explode(i,x,y,s,n) sim.gravMap(x,y,40) end
function explode(i,x,y,s,n)
sim.gravMap(x,y,40)
end
You have to block it if it tries to get a reading beyond the coordinates of the TPT window. At least that's what I'd do.
gravMap coordinates are measured in 4x4 blocks, rather than in single pixels.
sim.gravMap(x/4,y/4,40)
Forgot about that. Yes, 4x4, the same as pressure. It reduces lag.
thanks!