'kay, two questions in one.
http://www.udec.cl/~jfuente_alba/Blast_code.cap
First: I used the offset effect on a sprite to emulate top down tank tracks, but if the offset is negative it just slides away and if there's rotation involved it just goes NUTS!
Tried using a tiled background, but apparently that plugin cannot be rotated :O
Can't figure another way to do this. Any ideas?
Second: it's supposed to be a wrecking ball attached to the tank.
I've set it up so if it's out of a given radius (len_chain global) it will set the speed (Wrecking PV speedx and speedy) towards the body of the tank with a speed that depends on how far it is and an elasticity global. I also added a drag coefficient in the globals. The movement is rather wonky, has anyone a better approach? I want to achieve an elastic behaviour, after a certain distance the elastic should tense and apply force.
Tomorrow I will attempt actual force equation. Too tired now.