Greetings,
I’m using RoamingGamer’s shake effect code found here:
http://roaminggamer.com/2014/06/24/camera-shake-for-corona-sdk/
It works great but I’m using the Perspective Library/code and camera focus to follow a character that moves across the screen and I have different perspective groups that move at different speeds when character moves.
If I remain at start, and trigger the corresponding code for Screen Shake - it works perfect as expected.
However, when I move the character and so the different perspective groups move to mimic the character running across the screen, then trigger the shake effect - and stop - the Groups are off-centered on the x-axis due to the camera/perspective being used.
How to edit this code to work with the Camera/Perspective library? @roaminggamer…
I thought it would have to to do with this part of the code: display.currentStage.x
I’ve tried using camera.x but that doesn’t seem to work either.