Set up zooming out and cant get zoomin to work properly

QuestionManQuestionMan Member Posts: 81
edited August 2012 in Working with GS (Mac)
I've followed @tshirtbooth video to the T and I am able to zoom out now which is cool, but I made the button also zoom back in, and although that works, the 'zoom' attribute that was made in the video will not switch to 'true' for more than a microsecond.

To put this in perspective, here is my 'zoomInOut' actors code:

Rule 1: changes image according to what screen size is currently on the camera. (works fine, this is also what I will do as a workaround if I can't figure out the problem)

Rule 2:
If touch is pressed and 'Zoom' is false
then, Change 'Zoom' to true, Interpolate Scene.camerasize.width to 960, Interpolate height too

Rule 3: (I tried to do the reverse, so it zooms in and keeps the 'Zoom' back to false
If touch is pressed and 'Zoom' is true
then, Change 'Zoom' to false, Interpolate width and height back to original size


So the zoom works, but I have an actor that displays the boolean 'Zoom's status, and it always appears to be false. If I turn off rule 3, then it will change to True, but never change back. I need this to work so I can do other things with other actors upon zoom in and out. I can think of a workaround but I just don't see a reason why this isn't working. Thanks for any help!

Answers

Sign In or Register to comment.