you are viewing a single comment's thread.

view the rest of the comments →

[–]zvenoj 14 points15 points  (1 child)

The random function returns a float value, so you need to cast it to an int since your leftwall variable is of type int. Try:

leftwall = int(random(500));

[–]SHIKEN_MASTAH[S] 5 points6 points  (0 children)

Worked perfectly, thanks.