Thanks for the replying nonpuz.
I've got the idea of the better organization of the code.
But I use to write the code that way for to long. When I
put the code in here, I'll try to concatenate it the way you
can read it better. I have a function named object_x_set,
which catchs the object and moves it, looking for the place's limit.
But I don't like using it that much, because to call a funtion inside the the other can slow down the application's progress. I already have a flag named axis. It is inside the object, but it takes care to the rotation of the image. So it won't be that easy to adaptate it in my algorithm. I would like only doing the call of the pointer, without functions inside. I know I am in the right way, but there is something returning out before the right time. :/
I am postion the struct from the object in order you to see my variables.
Code:
typedef struct OBJECT{
long int id;
char * name;
int width ,width_offset ,height ,height_offset ,
x ,x_offset ,y ,y_offset ,
x_axis ,x_axis_offset ,y_axis ,y_axis_offset ,
flip;
double width_zoom ,width_zoom_offset ,
height_zoom,height_zoom_offset,
x_speed,x_speed_offset ,y_speed ,y_speed_offset,
angle,angle_offset;
COLOR * color;
COMPASS where;
SDL_Texture * image;
SOUND * sound;
TEXT * text;
TIMER * timer;
struct OBJECT * preview,* next;
}OBJECT;