Re: Sable audiogame creator

2021-01-07 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


Re: Sable audiogame creator

@7, apologies but I was under the impression that post 4 was enquiring if unity was usable, with that in mind how was my post irrelevant to the discussion? Unless I misunderstood what post 4 was asking, in which case apologies.

URL: https://forum.audiogames.net/post/604947/#p604947




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Sable audiogame creator

2021-01-06 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


Re: Sable audiogame creator

@4, unfortunately unity is completely inaccessible, plus, given the fact that, from what I know of it, its heavily reliant on visual programming and designing, there’s probably not much one could do with it even if it was somewhat usable.

URL: https://forum.audiogames.net/post/604735/#p604735




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: some help needed with python

2020-12-08 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


Re: some help needed with python

Hello all, apologies for bringing this topic back from the dead, but I’ve run into a fresh, new, and very crappy problem. So, thanks to your guys’ posts, I was able to figure out how to play music. For some strange reason however, playing sounds still remains a problem. If I was to write this piece of code.Menu_Confirm = pygame.mixer.Sound(“Sounds\\UI\\Confirm.wav”)The program gives me the following error.Pygame.error: Unable to open file ’Sounds\\UI\\Confirm.wav’I’ve tried applying the solutions suggested, but to no effect. I’ve searched, and I can’t find any solution which fixes my problem.

URL: https://forum.audiogames.net/post/596469/#p596469




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: some help needed with python

2020-11-15 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


Re: some help needed with python

@6, thanks for the suggestion, I’ve gone and done that. When I tried adding ‘r’ to the file path, a couple of things happened. Firstly, when I tried it with a .wav file, pygame brought me this error.pygame.mixer.music.load(r'A_2093\Sounds\Intros\Survivor\Survivor_Intro_Music.wav')Pygame.Error: couldn’t Open 'A_2093\Sounds\Intros\Survivor\Survivor_Intro_Music.wav'When I gave it a shot with an .mp3 file, it gave me the same error.Is it just that pygame can’t support .wav and mp3 files? Cause I have no clue what the problem could be otherwise.

URL: https://forum.audiogames.net/post/589951/#p589951




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: some help needed with python

2020-11-14 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


Re: some help needed with python

Hi all.@3, the reason I decided on trying to use pygame to play my sound files, rather than the playsound module, is that I wanted to loop music in the background, whilst also having other audio files playing at the same time. I’ve tried using playsound, and it worked, but I’m not sure if I can do things such as loop tracks, and other things like that. Though, for all I know I could be talking nonsense, in which case please correct me.@2, I’ve checked on the directory, and changed it to one in my desktop, but the problem is still there. Pygame keeps reporting that it can’t open the file, no matter what format it is.I’ve gone ahead and nuked my old code, replacing it with some new lines, as follows.# import all the needed modulesImport cmdimport textwrapimport commandimport jsonpickleimport osimport randomimport timeimport sysimport pygamefrom random import randintfrom pygame import mixerpygame.init()pygame.mixer.init()pygame.mixer.music.load('A_2093\Sounds\Intros\Survivor\Survivor_Intro_Music.ogg')the current full directory is: C:\Users\Samuel\Desktop\A_2093\Sounds\Intros\Survivor\Survivor_Intro_Music.ogg

URL: https://forum.audiogames.net/post/589772/#p589772




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


some help needed with python

2020-11-12 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


some help needed with python

Hello all.I’m trying to code a small text based RPG (in the same style of the Wastes), as my first python project. I’ve been trying to find a way how to implement sounds for when the player selects different options, fights enemies, etc.after a bit of research, I settled on using pygame as my best bet. Now, for what ever reason, when I try to load and play the sound file, it doesn’t work. I’ve placed the sound effect that I’m trying to use (which is a .wave file), right next to the .py file where all my code is, defined a sound object, tried to load it, only for pygame to inform me that it can’t open the wav file. I’ve tried multiple different file formats, including .mp3, and .ogg. I had the same problem with .mp3 files: and with .ogg files, pygame didn’t bring me an error message, the game launched as per normal, but it never played the sound file.I’ve tried looking online, but I found nothing that worked. So if somebody could point out what stupid mistake I am more than likely making, I would highly appreciate that.Now, at last, I present you with the code in question.import pygamefrom random import randintfrom playsound import playsoundfrom pygame import mixerpygame.init()pygame.mixer.init()#setting up all needed VariablesIsCombatKnifeEquipped = FalseIsBulletProofVestEquipped = FalseIsTacticalBatonEquipped = FalseIsIronPipeEquipped = FalseIsCombatHelmetEquipped = FalseIs10mmPistolEquipped = FalseIsSemiautomaticShotgunEquipped = FalseIs10mmPistoleLoaded = TrueIsSemiautomaticShotgunLoaded = True#setting up the playerclass Player(object):    def __init__(self, name, health, strength, dexterity, intelligence, charisma, perception, money):        self.name = name        self.health = health        self.strength = strength        self.dexterity = dexterity        self.intelligence = intelligence        self.charisma = charisma        self.perception = perception        self.money =money#setting up all items#setting up armorclass Armor(object):    def __init__(self, name, protection, durability, value):        self.name = name        self.protection = protection        self.durability = durability        self.value = valueBulletProofVest = Armor('bullet proof vest', '20', '80', '150')CombatHelmet = Armor('combat helmet', '10', '40', '65')#setting up CQC weaponsclass CQCWeapon(object):    def __init__(self, name, damige, durability, value):        self.name = name        self.damige = damige        self.durability = durability        self.value = valueCombatKnife = CQCWeapon('combat knife', '10', '20', '15')TacticalBaton = CQCWeapon('tactical baton', '15', '30', '20')IronPipe = CQCWeapon('iron pipe', '4', '10', '4')#setting up gunsclass Gun(object):    def __init__(self, name, damage, clipsize, ammotype, durability, value):        self.name = name        self.damage = damage        self.clipsize = clipsize        self.ammotype = ammotype        self.durability = durability        self.value = valuePistol10mm = Gun('10mm pistol', '14', '12', '10mm magazine', '50', '80')SemiautomaticShotgun = Gun(' Semi automatic Shotgun', '25', '4', '12gage shells', '60', '180')#setting up ammunitionclass Ammo(object):    def __init__(self, name, value):        self.name = name        self.value = valuemagazine10mm = Ammo('10mm magazine', '15')ShotgunShells = Ammo('12gage', '30')#mane game#title screen#setting up the options for the title screendef Title_Options():    menu = pygame.mixer.Sound('menu_select.wav')    print ("Please select one of the following options")    print ("1: start. 2: help. 3: quit.")    Title1 = input(" ")    if Title1 == "1":        menu.play()        chargen()    elif Title1 == "2":        Help_Menu()    elif Title1 == "3":        print ("thank you for playing")        sys.exit    while Title1 not in ['1', '2', '3']:        print ("Please select one of the valid commands")        print ("1:start. 2:help. 3:exit.")        Title1 = input(" ")        if Title1 == "1":            menu.play()            chargen()        elif Title1 == "2":            Help_Menu()        elif Title1 == "3":            sys.exit            print ("thank you for playing")

URL: https://forum.audiogames.net/post/589234/#p589234




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: help getting started in Python

2020-10-07 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


Re: help getting started in Python

Hi all.Big thanks for the advice and all of the links. I’m doing some research on my own, and going through the sources that you guys provided, and I think that I’ve now got a pretty good base on which to start off. I’ve just got one more question, I’ve decided to check out Learning Python The Hard Way, and in it, it recommends to use python2, and stay away from python3. I was just wondering if there was a reason for this, and if what the book says can also be applied to Python3, as well as to 2.I just want to say thanks again, and I really appreciate all the help.

URL: https://forum.audiogames.net/post/578170/#p578170




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


help getting started in Python

2020-10-01 Thread AudioGames . net ForumDevelopers room : Samuel Farrugia via Audiogames-reflector


  


help getting started in Python

Hello all.So, for the past few years, I’ve been poking around the internet, trying to find a coding langwidge, which is easy enough to learn, so that a completely clueless teen, such as myself, could pick it up, and one day, hopefully create something with it.I’m a complete beginner when it comes to coding, my only experience being cracking open the BGT manual, reading through it, and subsequently failing to even create a simple main menu. As such, I’d be extremely grateful if somebody, could perhaps guide me to somewhere, which explains how to code using python, in a beginner friendly, easy to learn way. What I’m essentially looking for, is somewhere which can help me learn the bedrock principles of python, and just coding in general, how to create menus, a first person perspective, and may be if I’m being stupidly optimistic, a 3D Environment, with enemies, an inventory, weapons, and gear.I apologize in advance if what I’m requesting sounds stupid, or lazy on my behalf, its just that trying to learn BGT left me feeling frustrated and demoralised to ever try and create a game, and I don’t want the same result to happen with Python.

URL: https://forum.audiogames.net/post/575997/#p575997




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector