you guys all said pretty much the same thing, use a .0 and the end or float()
and they all worked. Thankyou so much
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
htt
in python im doing the problem 255/494
it keeps giving me 0 instead of .51
what am i doing wrong?
please help me I have been looking for hours
Never miss a thing. Make Yahoo your home page.
http://
In my game there are planes and I could make multiple bullets fired by the
plane by keeping track of each bullets x and y coordinates. I was wondering if
there is an easier way without keeping track of a 150 bullet coordinates.
while repeat:
for event in pygame.event.get():
if event.type == (QUIT):
pygame.quit()
if (event.type == KEYDOWN):
if (event.key == K_ESCAPE):
pygame.quit()
if (event.key == K_
Here is the program I just started, The problem i am having is I'm trying to
get it to load the image file Sand1 with eval(loader) =
pygame.image.load(loader)
because Loader is euqual to "Sand1" but It wont load it. If I set it as loader
= pygame.image.load(loader) then it sets the image to the
I'm attempting to create a game and right now the game has 6000 lines of code
and is confusing me.
I have seen it done but have no idea how to do it, but I would like to use
seperate files and incorporate them together. One for my units, one for the map
maker, one for the playing part.
Any ide
if i have a number 6.345 and i wanted it to be 6 without subtracting .345
because it won't always be .345 what do i do?
how do i round to the nearest whole number. Or in this case round down. Is
there an easy way to round down to the nearest whole number?
___
Traceback (most recent call last):
File "C:\Python25\empire\Empire Strategy.pyw", line 322
Maty = Searched(number)
TypeError: 'list' object is not callable
My list is NewMap1 =[0,0,0,0,0,0,2,0,2,2,3,2,0,0,0,0]
so Maty Searched(number is supposed to give me 0 when
Search = "NewMap"
I tried googling and yahooing to find the answer and there was to many
conflicting results so i just decided to ask to simple question here.
How do i could the number of letters in a string no a single letter all of them.
ex. 'Count this String'
should turn into an integer saying 17
___
Nevermind I always seem to find the answer on my own after i post the topic. i
used len(string) and it counted the letters in string... why do I always do this
Be a better friend, newshound, and
know-it-
WAHHH! for all of you who helped thankyou all of your ideas worked perfectly. I
found what was causing the error and corrected. thankyou for the replies.
Never miss a thing. Make Yahoo your home page.
h
I'm sorry this is the error
Traceback (most recent call last):
File "C:\Python25\empire\Empire Strategy.pyw", line 1788, in
eval(NewMap1, {}, {})
File "", line 1
Tropical Islands
^
SyntaxError: invalid syntax
- Forwarded Message
I tried your suggestions and all that came up was the error
Traceback (most recent call last):
File "C:\Python25\empire\Empire Strategy.pyw", line 1788, in
NewMap1= eval (NewMap1, {}, {})
File "", line 1
Tropical Islands
^
SyntaxError: invalid syntax
And what is thi
How on earth do I convert strings to lists. I have a string with a list it in
it and I'm trying to convert it into a list. Please help me.
Ex."[16, 16, 2, 16, 2, 16, 8, 16]"-string
to [16, 16, 2, 16, 2, 16, 8, 16] -list
___
UGH so frustrating. In my game there is a minimap. On top of the minimap is a
window showing the part of the map your viewing. The minimap is composed of
other little pictures piled of top of eachother.
I want to know how to basically take a picture from ex.((50,50),to (150,150))
and blit the m
15 matches
Mail list logo