I'm making a game and I have created a new kind of object from TImage but I just added some properties. But now I need to create an object to make things appear on game. I tried with the new but it didn't worked. Here is what I tried.(TSpaceObj is my new TImage thing)
TSpaceObj *rock = new TSpaceObj;
TSpaceObj *rock = new TSpaceObj;