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.

Geek Culture / [LOCKED] VB Delay question

Author
Message
old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 3rd Oct 2011 22:00
Having a little trouble figuring out how to make this go in order properly and delay properly. Basicly I need this to diplay the image then play the new audio, wait to complete then go back to playing the regular background music.



This is just a snippet of code of course. Scoutnumber is a random. The image of course is messagebox.BackgroundImage = My.Resources.Ant_Armor_1_Message which needs to display first then it needs to My.Computer.Audio.Play(My.Resources.Marching, AudioPlayMode.WaitToComplete)


Then locations has the background music that needs to start backup. Every background song is different based on location hence the name. Anyway I tried playing with sleep and that did not seem to work. I'd also like to avoid making a timer for this if possiable. Suggestions would be great. I would do a "Do while" but I've never tried using one before so I don't know if it would work or even solve the issue.

Currently it plays the "wait to complete" audio first, displays image and then load locations. I need it to load picture before the wait to complete audio.
Seppuku Arts
Moderator
20
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 3rd Oct 2011 22:10
I think it's been said before, but the proper place for these sort of threads (and probably where you'll get a better response) is right here:

http://forum.thegamecreators.com/?m=forum_read&i=20

I know I'm not a mod, but I think it was a mod who picked you up on it last time.

old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 3rd Oct 2011 23:35
I reposted it in there, this can be locked or removed

Login to post a reply

Server time is: 2025-05-20 11:55:17
Your offset time is: 2025-05-20 11:55:17