Trying to create scrolling book user experience.
hillelc
Member Posts: 56
I have a wide scene, divided into 1024x768 chunks.
I'd like to touch an actor and have the camera move 1024px to the right or left depending on which actor I touched (i.e. previous/next).
I've tried a variety of techniques, and nothing seems to be working just the way I want.
I can get the camera to move to the right, and then back to the left, but then it won't work again. I've read all the docs, but I'm not sure how to get the actor controlling the camera to constantly listen for events so it keeps moving depending on what got pressed.
I thought of using constrain attribute to constrain the x position of the camera controlling actor to a global attribute I set when i press previous or next, however, that doesn't get me my scrolling behavior. For that I'm assuming all I can do is use 'move to'.
Thoughts?
Thanks in advance.
--hillel
I'd like to touch an actor and have the camera move 1024px to the right or left depending on which actor I touched (i.e. previous/next).
I've tried a variety of techniques, and nothing seems to be working just the way I want.
I can get the camera to move to the right, and then back to the left, but then it won't work again. I've read all the docs, but I'm not sure how to get the actor controlling the camera to constantly listen for events so it keeps moving depending on what got pressed.
I thought of using constrain attribute to constrain the x position of the camera controlling actor to a global attribute I set when i press previous or next, however, that doesn't get me my scrolling behavior. For that I'm assuming all I can do is use 'move to'.
Thoughts?
Thanks in advance.
--hillel