I have an object that I wanted to have change its image when it detects a collision with another object. Every time I try to implement this the program crashes.
I have a function called newShape ( kind, health );
where kind of the shape time and health is one of three images for the shape.
I dont see a command or structure to directly change the image of an object, so I tried to have it first set the object place hold which is an array ( i.e object[i] ) to nil, or just completely remove itself, and then reload a new shape from the function of the type needed and with the same properties into a completely new object or place in the array.
But it still crashes. Does anyone know an effective way to do this, or know any tricks/tips of why it might be crashing?
Thanks [import]uid: 59590 topic_id: 17216 reply_id: 317216[/import]