Introduction and Help needed
Hi there, I'm new to gamesalad, so I need some help. I'm making my first game app for iphone which is basically a chasing game. I've managed to make the police car follow my main car(or main character, however when I turn left, the police car still follows the car but instead of facing left it doesn't it still faces up. I've added changed an image behaviour to the police car but still it doesn't seem to work. Can anyone help me out please?
Comments
Make two game level attributes. They should be of type "real". Name them something like:
mainCarX
mainCarY
Then in the main car a two behaviors:
Constrain attribute: game.mainCarX To: self.Position.X
Constrain attribute: game.mainCarY To: self.Position.Y
Then in the police car actor use the rotate to position behavior:
Rotate To Position: mainCarX, mainCarY, relative to scene
Also remember that the police car's image should be facing right (that is the 0 angle in game salad).