Re: PyAudioGame Help, Cash error

2015-08-06 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector


  


Re: PyAudioGame Help, Cash error

change cash to storage sorry!

URL: http://forum.audiogames.net/viewtopic.php?pid=226847#p226847




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

Re: PyAudioGame Help, Cash error

2015-08-06 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector


  


Re: PyAudioGame Help, Cash error

it should be cache, but I was silly and put cash. I think it is changed in later versions to just be storage all around.

URL: http://forum.audiogames.net/viewtopic.php?pid=226848#p226848




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

Re: PyAudioGame Help, Cash error

2015-08-06 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: PyAudioGame Help, Cash error

Not all that familiar with PyAudioGame, but it seems like the cash attribute isnt implemented. Heres a few tweaks that might help:#ATTACK!!!import pyaudiogamespk = pyaudiogame.speakMyApp = pyaudiogame.App(My Application)#Lets create a storage box so we can put our dragons hp in theredragon_hp = 100#Now lets make our heros hit strengthhero_hit = 10#An attack functiondef attack():  #When the hero attacks he takes the dragons hp  dragon_hp = dragon_hp - hero_hit#Now lets make a way for our hero to attackdef logic(actions):  key = actions[key]  if key == space and dragon_hp  0:attack()spk(You, the hero of our tale swing your sword. You hit the dragon for %s damage! Now our poor dragon 
 has %s hp left % (hero_hit, dragon_hp))if dragon_hp = 0:  spk(You, the hero of our story killed the dragon. The whole town thanks you!)  spk(Press escape to go back home)MyApp.logic = logicMyApp.run()

URL: http://forum.audiogames.net/viewtopic.php?pid=226733#p226733




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

Re: PyAudioGame Help, Cash error

2015-08-06 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector


  


Re: PyAudioGame Help, Cash error

I figured it out. It seems the tutorial code and examples were missing a line of code. All I did was add from pyaudiogame import cash as storage right underneath import pyaudiogame It works great now.TJ Breitenfeldt

URL: http://forum.audiogames.net/viewtopic.php?pid=226737#p226737




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

PyAudioGame Help, Cash error

2015-08-05 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector


  


PyAudioGame Help, Cash error

Hi, I downloaded pyaudiogame, and I have been making my way throughthe tutorials. I ran into a problem with the Dragon game in basictutorials / lesson 4: wait, is that math?The error I am getting is:note: this error is from the example file providedTraceback(most recent call back):  File ex4.py, line 7, in module    storage = pyaudiogame.cashAttributeError: module object has no attribute cashI checked my code multiple times and it is correct, I also triedrunning the exe4.py file and I get the same error about cash as youcan see.Can you help, the tutorials say that the code should be correct.TJ Breitenfeldt

URL: http://forum.audiogames.net/viewtopic.php?pid=226730#p226730




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