Crundy wrote:I did see the tutorial you linked to, but I couldn't get it to work for my project and it doesn't give a complete example so when I finally got something working that involved using a controller to move a sprite round a TMX map with collisions I thought I'd post it as a complete example for others to use.
sscape wrote:rioneye wrote:Wow, thats impressive Crundy. Although I am having a problem compiling your code (Line 144). I am getting an error for updateChaseEntity, which says "The method updateChaseEntity() is undefined for the type BoundCamera." I'm not sure what could cause that, since I have everything imported.
Nicholas submitted some updates about 4 hours ago: "Camera.updateChaseEntity and made it publicly accessible, because it is often used to prevent the Camera from 'lagging' one frame behind the Entity it is chasing." so grab a new version of the code.
Crundy wrote:Try commenting out line 144 for now using the andengine.jar from the examples repository. The map will stutter a bit when scrolling but at least you'll be able to see the general concept in action until the examples jar is updated.
Users browsing this forum: Dudi, Exabot [Bot] and 37 guests