speed of actor with camera and touch
PaxPax
Member Posts: 106
I have an actor with the code: control camera and also constrain self.position x to touch + scene camera origin x (same thing for y). Scene width is 2000. The actor moves perfect with the touch until it gets outside the normal iphone width . When it gets to 568 and beyond(iphone landscape-568---I think this is where it happens or maybe something else to do with camera ), it goes into WARP speed. Warp speed is a the problem.
I have watched a few videos(t-shirtbooth etc.) but could not determine what I am doing wrong.
Any suggestions will be appreciated.
Cheers
I have watched a few videos(t-shirtbooth etc.) but could not determine what I am doing wrong.
Any suggestions will be appreciated.
Cheers
Answers
Thanks in advance
cheers
I hope someone can give me further guidance.
cheers
Thanks for the above video. I have made the attributes(when originally started this project-should have been more clear in my first post) t-shirt booth refers to in order to allow 'touch' to work once passed the initial size of screen. I named them cam x and y. So my rule is constrain self position x to game touchx + gamecamx. Same for y. I have an instance actor that constrains gamecamx to scenecameraoriginx. Same for y.
Still only get warp speed once actor arrives at initial scene edge.
Thanks again, really appreciate it!!!
Wish my brain would work at warp speed and get this issue behind me. :@)
Thanks you so much!!! It is much better now.
Cheers