i need some help in how to use a printer to print out some info.
i searched the forums and only found topics about printing whats on screen.
im working on a project that users will do some procedures, and then, based on what users did, make the applicative to print out a ticket to be given to each user.
what i want to print is not on screen. i just want to print a string or some variables.
im new to programming and i am trying to make a class of objects that detecs another objects.
like a game, where the character collides with the environment.
i made a simple primitive test that worked fine... untill i decided to add a sencond object.
the first objects works fine and it "knows" when the "player" is nearby. the second acts like nothing is happening.
i dont have a clue why.
the code:
int x, y;
//if left, right, up or down (in this order) directions are possible
any help?
thanks in advance.
sorry if theres any "engrish"... my first language is portuguese.
EDIT: i forgot to say: i read lots of posts about collisions and stuff. all people cares are about circles colliding... oh god!
and, if i posted in the wrong forum, please, move it to the right one.