|
Hello I am creating a 2d platformer for android, where the character is controlled using the accelerometer. I have used the roller ball script to control my character and the shooter script I am currently using can be found here. My problem is that I need to shoot to the right when tilting the phone to the right and shoot to the left when tilting the phone to the left. I have continuously attempted to apply the logic in the roller ball script to my shooter script to no avail. If anybody can help me accomplish this, it would be greatly appreciated. thanks
(comments are locked)
|
