How to move camera position around the scene with touch?
reddotinc
Member Posts: 653
Hey guys,
I've been searching high and low to try and find out how to do this but have only manage to found it for dragging an image around which isn't what I'm looking for. Think Angry Birds, being able to "drag the scene" to view what is off the screen to the right. That's the solution I'm looking for.
I'm sure a lot of people would like to know how to do this, so would be great if someone could share the wealth
// red.
I've been searching high and low to try and find out how to do this but have only manage to found it for dragging an image around which isn't what I'm looking for. Think Angry Birds, being able to "drag the scene" to view what is off the screen to the right. That's the solution I'm looking for.
I'm sure a lot of people would like to know how to do this, so would be great if someone could share the wealth
// red.
Comments
You have to mess with the camera attributes, but those are scene attributes, so do it from an instanced actor in the scene.
I'll have a look through again to find it
// red.
I'll upolad the game as soon as GS lets me! [ It currently won't log me in via the GS application].
// red.
Rule when touch is pressed
----Rule when touch count = 1
--------Do blah blah blah
Then have your camera controls like this
Rule when touch is pressed
------Rule when touch count = 2
-----------Camera controls
@scitunes thanks dude, but I want the camera movement to be single touch, I've set up the layers well now
// red.