Hi,
Can anybody confirm whether there is a problem with Actor's and adding a new image to it programmatically?
Basically, I'm creating a simple demo app, which adds an actor to the world, overriding it's image. I.E. I'm allocating a new greenfoot image within the actor and replacing the actors reference to the new image. This works well, except that when doing at the initialisation phase and actor is being added, the original addObject(image,x,y) positions x & y are ignored. They appear to be replaced by the new images width and height (halfed). I don't want this behaivour. I would like the x & y to remain where they are and show the image at that position. I think this is linked to handles which appear to be center of images. At the moment, I'm having to add an adjustment method into the class which is called after actor is added to the world (which is a little annoying and rubish in my opinion).
Is there a way to override this or is this a bug?? I'd appreciate anyone who can give me an answer. Thanks and kind regards Sp33dy