Touch Controls
NacMacFeegle
Member Posts: 11
I am setting up fixed actors in a camer view, such as scores that always stay fixed at the top of the screen while the camer moves around.
I have added in touch behaviour to 4 actors and made them also fixed using game attributes that update from the cameras x and y position.
Each of the four actors are placed on the screen and constrained to the camras x,y but adding an offset to position them on the screen. For example self.position.x to game.CamX+200.
By adding an offset the touch behaviour works but not on the actor, in the above example pressing further along passed the actor works but not on it.
I am not sure what is happening here could anyone shed some light on it please?
Many Thanks
Chris
I have added in touch behaviour to 4 actors and made them also fixed using game attributes that update from the cameras x and y position.
Each of the four actors are placed on the screen and constrained to the camras x,y but adding an offset to position them on the screen. For example self.position.x to game.CamX+200.
By adding an offset the touch behaviour works but not on the actor, in the above example pressing further along passed the actor works but not on it.
I am not sure what is happening here could anyone shed some light on it please?
Many Thanks
Chris