MTecknology Member Posts: 13 From: Registered: 08-18-2003 |
I have all needed files, and clearly dont know enough about this language. I want it so that when the user presses a number(above the letters) the song will change. If anybody feels compelled to completely rewrite the code, I would like it to be in a function, hopefully this makes it easier for you . My Code 'Snippet'(I don't want to put to much on here.--> ;;; backgroundmusic1 = PlayMusic("1. Around The World.mp3") ;;; Const D = 32, Key1 = 2, Key2 = 3, Key3 = 4, Key4 = 5, Key5 = 6, Key6 = 7, Key7 = 8 Const Key8 = 9, Key9 = 20, Key0 = 11 ;;; Global sound ;sound file being played sound = 1 ;1-9,0 Global Key ;key been pressed for music ------------------ |
baykar Member Posts: 11 From: aleppo,syria Registered: 08-27-2003 |
Hiiiiiiiiiiiii mteck i hadn't understood what you are really looking for but here is a code for you
Global m1,m2,m3,m4 Repeat If KeyHit(2) Gosub music1 Forever
.music2 .music3 .music4 .stop1 .resume is this what you are looking for????? ---------- |