#Patch v1.696

1 messages · Page 1 of 1 (latest)

dusty lion
warped tiger
#

First tfm_smiley

vocal tangle
wary spoke
#

Okay, tfm.exec.movePhysicObject() is something we really needed

#

❤️

serene veldt
#

nice

wary spoke
split knot
#

Only Lua updates? tfm_sad

serene veldt
#

yes Lua, no others

unkempt bough
#

lua supremacy

wary spoke
#

💪 Lua

frosty copper
#

nice

covert thicket
#

Wow, cool, now we can move spawned grounds with addPhysicobject e.e

unkempt bough
#

Can do super cool things with this + contact listener

#

a cool shooter perhaps??

split knot
warped tiger
covert thicket
#

And yet, if the contact listener doesn't work with the floor marked "do not collide with mice", the mouse will fly away from where it was on impact.

#

But could make dynamic elevators for example

#

Like, you got to X position, the floor lifts and starts taking you to Y place.

unkempt bough
#

just a quick code I did for testing and it works fine without any of the said issues :P

#
tfm.exec.newGame(0)
system.bindMouse("King_seniru#5890", true)
eventMouse = function(name, x, y)
tfm.exec.addPhysicObject(1, 700, y, {groundCollision=false,type=0,width=10,height=10,angle=45,dynamic=true,fixedAngle=true, mass=0.0001, contactListener=true})
tfm.exec.movePhysicObject(1, 0, 0, false, -800, -0)
end

eventContactListener = function()
print("hit")
end
covert thicket