Advertisement

Moving in Tcl/Tk (little game)?

Started by October 14, 2000 12:01 PM
1 comment, last by Xeloc 24 years, 3 months ago
Dear members of this forum, I have two very stupid question but it would be fantastic if somebody can help me: 1. How can I let oval move around the screen? So the command is simply but I don''t know how it is possible to let move an object and also use other function. So for example I want to create a snowfall and also I want to move a rectangle with the cursour? I hope you can understand me (like the groundstructure of a little game?) 2. How is the command for getting the actual coordinates of the mousecursour? 3. Are there any good resources for this topic in the Internet? It would be very pleased about any help! With kind regards, Xeloc
im really not sure how much this will help but here goes.

in response to your 2nd question (cant answer the others) here is what it gives you in TOTWGPG by LaMothe (its for windows)

        // i assume this goes in the event handling bit //(winproc i think its called) but im only just //learning windows stuff so i might be wrongcase WM_MOUSEMOVE: {int mouse_x = (int)LOWORD(lparam);int mouse_y = (int)HIWORD(lparam)}break;        


Hope this has helped

"People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face

Edited by - Zeke on October 14, 2000 8:05:58 PM
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
Advertisement
Your code is for C/C++ but I want to know it for Tcl/Tk as I wrote it in the subject.
However thank you!

Please can somebody help me?

Regards, Xeloc

This topic is closed to new replies.

Advertisement