Ok, so I noticed that you had a question in my GTA senario. Essentially, My car was a separate class from my player and these vehicles and players extend a scrollable class. This is so if any of the actors in the scrollable class are within a certain bounds, I scroll the world. So if my player is colliding with the car, then it checks for a key. If that key is pressed, then the car has a boolean "is driving" or something like that, and if that is true, then it will move and my player no longer rendered. When I exit the car, I simply set the location of the player to the car and move it right 10 pixels or so. You may want to develope a system that places the player where there are no objects in the way. But basically this is how I did it and I hope it helps!
Recent Comments | Show All
2014/10/5
Top-Down Zombie Shooter
2013/12/4
GTA Greenfoot DEMO KASIM