Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Need help with my music program in DBC!

Author
Message
Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 11th Mar 2004 12:30
Hi, I am making a little music program for 20 Liners (I haven't yet stacked much), and was trying to do it without help, but i just can't get it right. I want to use gosub or goto (goto is in my code) but it doesn't seem to react when i press the up/downkey in the test. Infact it goes straight to the first music without bothering to check if a key is being pressed(I added suspend for key but it didn't help). I have never attached so am just going to try .



I think that worked. I also attached the code to the bottom button.
It needs media which is not included, so dont bother trying to test it without removing the music.

Last night I was looking up at the stars and said "Where the hell is my roof?!"
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Mar 2004 14:03
Well, I'd do this:



Try that and see if there's anything you don't understand, happy to explain any part of it in more detail.


Van-B


The nature of Monkey was irrepressible!.
Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 12th Mar 2004 07:13
That sorted out the music, but now it won't show the objects when the music plays .

Last night I was looking up at the stars and said "Where the hell is my roof?!"
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 12th Mar 2004 13:43
Ahh, see it should show the objects, must be your camera pointing the wrong way, before your main loop, add this:

AUTOCAM OFF
POSITION CAMERA 0,0,-200
POINT CAMERA 0,0,0


Van-B


The nature of Monkey was irrepressible!.
Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 13th Mar 2004 04:36
Errr... still nothing. But, when i press escape to exit the CLI I do see the object, but if i go back to it, it dissapears again.

Last night I was looking up at the stars and said "Where the hell is my roof?!"
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 14th Mar 2004 15:07
does this improve things?
Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 15th Mar 2004 09:33
Bibz1st - Syntax Error occured on line 4. Unrecognised Parameter. Ah well, I guess i'll just work on something else for the 20 liners challenge.

Last night I was looking up at the stars and said "Where the hell is my roof?!"
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 21st Mar 2004 15:07
sorry, not been online for a week, line four should be....
if downkey()=1 and hauntedflag=0 then goto haunted
Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 22nd Mar 2004 11:34
Ok, that SHOULD fix things, i'll find out soon because i haven't installed DarkBASIC on our new computer and i haven't been able to find the CD, i will soon though. (The new computer has 1 GB of RAM!)

Last night I was looking up at the stars and said "Where the hell is my roof?!"

Login to post a reply

Server time is: 2024-11-26 09:25:12
Your offset time is: 2024-11-26 09:25:12