Blacklemon67
September 8th, 2008, 09:50 PM
Is there a way to generate random surface names in pygame? I'm trying to make it so when you press the mouse button, a random image will come up where the cursor is (like a stamp.)
I have the mouse position varuables set up already. I was thinking I could make a list with all of the image names then use .pop(randomnumber) to take it out and return it. But then how do I position them? and If there are duplicates, will the original stamp simply snap to where the new one will go?
I need help :(
I have the mouse position varuables set up already. I was thinking I could make a list with all of the image names then use .pop(randomnumber) to take it out and return it. But then how do I position them? and If there are duplicates, will the original stamp simply snap to where the new one will go?
I need help :(