Pinball nearly
-
-
Those flippers look like they are pivoting about the wrong point. That ought to be easy to fix.
-
@DomDom I'm sure there is but il just hide that part and redesign the flippers unless it is an easy fix but not a problem
-
Well that counts as an easy fix. Good job anyhow.
-
Something like
// Right flipper ( / 2 becuase it appears to be how much you are going to add to the existing origin which is in the middle by default) setSpriteOrigin(flipperR, getSpriteImageSize(flipperR).x / 2, getSpriteImageSize(flipperR).y / 2) if controls(0).right then setSpriteRotation(flipperR, 45) else setSpriteRotation(flipperR, 0) endif // Set back to the centre so it prints in the right place setSpriteOrigin(flipperR, 0, 0)
NOTE: Something LIKE. May not be exact. Also probably not best practice to use controls(0) and the sprite functions directly like that but it saves typing. Which I've since used up by explaining it !!
-
@Martin il give it a blast thanks again
-
@Martin said in Pinball nearly:
setSpriteOrigin(flipperR, 0, 0)
yep that did it, changed the 2 to a 3 perfect and no dodgy fix
-
Ah yeah, sorry the
/2
was assuming that it was a perfect square which we know it's not