yeh,I was just looking into this createrevolute joint, the thing is,how do you get both wheels using a motor! if i simply add another revolute joint for the 2nd wheel in relation to the first, it seems to cancel the first motor out!
function createcar()
rem left wheel
createsprite(wheel1,100)
setspritesize(wheel1,4,2)
setspriteposition(wheel1,getspritexbyoffset(cursorsprite),getspriteybyoffset(cursorsprite)-8)
setspriteshape(wheel1,1)
SetSpritePhysicsOn(wheel1,2)
rem right wheel
createsprite(wheel2,100)
setspritesize(wheel2,4,2)
setspriteposition(wheel2,getspritex(wheel1)+10,getspritey(wheel1))
setspriteshape(wheel2,1)
setspritephysicson(wheel1,2)
SetSpritePhysicsOn(wheel2,2)
CreateRevoluteJoint(1,wheel2,wheel1,getspritexbyoffset(wheel1),getspriteybyoffset(wheel1),0)
CreateRevoluteJoint(2,wheel1,wheel2,getspritexbyoffset(wheel2),getspriteybyoffset(wheel2),0)
SetJointMotorOn( 2, -30, 100 )
endfunction
Hail to the king, baby!
http://davidjohnwheeler.blogspot.co.uk