Quote from: Andail on Tue 04/09/2012 13:38:33ah, now it works!
2. To remove an inventory item you use
cEgo.LoseInventory (iInventoryitem);
Quote from: Khris on Tue 04/09/2012 14:08:30oh, that was the problem! i changed it into "music1" and now it works.
Regarding 1., I remember having read that if you use the filename music0.mid, the file is going to play automatically from the beginning, even if you don't start the playback yourself. I don't know if that' still true for the current version of AGS though, with the sound system having been overhauled and all.
Quote from: Khris on Tue 04/09/2012 14:08:30oh yes, i mixed it up. when i pick up the cassette as an Object it's "okassette" and when i use it as an Item it's "ikassette", sorry.
Also, it is recommended to put an "i" at the start of inventory items as opposed to "o" for room objects, so the name of the inventory item should be "iKassette", but that's of course up to you. It does help with not mixing up stuff though.
thank you for your fast help, now i'll try to make the game end after the music starts.
edit:
ah! "quitgame" works! now my testgame is finished! thank you very much!
--> i'm shure i'll have more questions for the next one, so i will post it into this thread here..