This site requires JavaScript, please enable it in your browser!
Greenfoot back


Welcome to my page

jrlowe's collections

This user has no collections

Recent Comments | Show All

Are you using pathfinding with the zombies?
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!