0 Replies - 687 Views - Last Post: 29 March 2009 - 05:13 PM Rate Topic: -----

#1 CalumJR  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 49
  • Joined: 10-May 08

[Python/PyGame] Recognising when the mouse has drawn a line

Post icon  Posted 29 March 2009 - 05:13 PM

I realise we are supposed to post our code, but at the moment I have no code, I am just looking for ideas on how I could go about this as I am stuck, I am not asking for code and if I do, I will always provide what I have done so far.

I have to create a game for one of my assignments in python, using pyGame. I am considering developing an InkBall type game (InkBall can be found in Windows Vista), however, I cannot seem to find any information on how to get the user interface to recognise when the mouse has drawn a line. I just can't seem to figure it out.

I would like to be able to hold down the left button on the mouse and draw a line anywhere in the game area, just like InkBall, but I can't figure this out anywhere.

I'm not experienced in this as we haven't been doing python long and I haven't really created any games yet.

If anybody could help me at all, I would really appreciate it :)

Thanks in advance.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1