Question about touches and moving an actor with finger

matthewsuttlesmatthewsuttles Member Posts: 42
edited May 2012 in Working with GS (Mac)
hey guys I am having trouble with a game I am currently working on. I want the actor to bounce on a trampoline that is controlled by my finger. I'm just having trouble doing it.

Here's what I have been doing so far.

My scene is 700 px wide

On trampoline
Constrain
self.x to game.touches.touch1
constrain self.startingY to self.y
constrain self.y to self.startingy

the problem is that the scene is 700 px and when the actor moves the camera the tramp doesn't follow past 480. I moved the trampoline to a non scrollable layer but then I had trouble with the collision between the actor and the tramp. Is there anything else I could possibly try?

Answers

Sign In or Register to comment.