This has been asked here before and I checked out the two threads but cannot seem to get it to work for myself.
Basically I have two Entity classes, one is the inventory which is just an opaque bar, and the other is an item icon. I am trying to add the item icon to the bar, using addGraphic but it is yelling at me because an Entity is NOT a graphic. So I am not sure how I can go about adding the entity to another entity.
This is what I am trying to do in the Inventory class:
graphic = new Image(BAR);//this works and shows the empty inv
addGraphic(new tool(0, 0));//this doesn't because I am a noob
Thanks guys!