Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Importing module error
Post: RE: Importing module error

I imported gaming into char.py to access the variables of gaming.py. char.py import random,pygame,Game class Char(): def __init__(self): pass def get_position(self,mapheigh...
walernor General Coding Help 5 3,338 Feb-02-2019, 08:50 AM
    Thread: Importing module error
Post: RE: Importing module error

Hi, When I remove "import gaming" from char.py, it says "Module has no attribute "Char" again **huh**
walernor General Coding Help 5 3,338 Feb-01-2019, 04:56 PM
    Thread: Importing module error
Post: Importing module error

Hi everyone, I stuck at a point in my code. I have two files in a folder named gaming.py and char.py These are some codes in gaming.py import pygame,sys,random,time import char charclass=char.Char...
walernor General Coding Help 5 3,338 Feb-01-2019, 04:16 PM
    Thread: Help about a function
Post: RE: Help about a function

(Jan-15-2019, 07:20 PM)ichabod801 Wrote: Here's how a function could be useful: get_position(floormap): while True: row = random.randint(0, mapheight - 1) column = random.randin...
walernor General Coding Help 2 2,469 Jan-15-2019, 07:50 PM
    Thread: Help about a function
Post: Help about a function

Hi to everyone, I have a question. I have a game map and 5 monsters. I want all my monsters born on the "dirt" not on the rock or water and I have this code; while True: mnstrh=random.randint(0...
walernor General Coding Help 2 2,469 Jan-15-2019, 05:34 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020