Mirage Source
DirectX8 Class Demonstration :) ver1.3 - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Programming (https://mirage-engine.uk/forums/forumdisplay.php?fid=24)
+----- Forum: Visual Basic 6 (https://mirage-engine.uk/forums/forumdisplay.php?fid=32)
+----- Thread: DirectX8 Class Demonstration :) ver1.3 (/showthread.php?tid=2779)

Pages: 1 2


Re: DirectX8 Class Demonstration :) ver1.3 - Matt - 15-06-2009

Blodyavenger Wrote:Did that with GIAKEN's dx8 class help

http://www.youtube.com/watch?v=nDp45Rf4a2w&feature=channel_page

If at all possible, it would look a LOT better if the particles went BEHIND the menu's and such.

Just my opinion, though.


Re: DirectX8 Class Demonstration :) ver1.3 - Blodyavenger - 15-06-2009

Thanks for suggestion, I'm going to do that for sure.


Re: DirectX8 Class Demonstration :) ver1.3 - Robin - 03-09-2009

Here's how to make music loop.

Code:
Public Sub LoopMusic()
    If DSPosition.CurrentPosition = DSPosition.Duration Then
        DSPosition.CurrentPosition = 0
        DSControl.Run
    End If
End Sub

Just call CDX8.LoopMusic in your main loop to loop the music.


Re: DirectX8 Class Demonstration :) ver1.3 - Nean - 03-09-2009

Robin Wrote:Here's how to make music loop.

Code:
Public Sub LoopMusic()
    If DSPosition.CurrentPosition = DSPosition.Duration Then
        DSPosition.CurrentPosition = 0
        DSControl.Run
    End If
End Sub

Just call CDX8.LoopMusic in your main loop to loop the music.
Awesome. Thanks.


Re: DirectX8 Class Demonstration :) ver1.3 - Robin - 04-09-2009

Add a sound system.


Re: DirectX8 Class Demonstration :) ver1.3 - GIAKEN - 04-09-2009

Eh people just use my DX7 class to play WAVs.


Re: DirectX8 Class Demonstration :) ver1.3 - Kevin49 - 04-09-2009

Very nice, it adds a little professional touch to an amator game Smile Good job I Think this is very useful 8-)


Re: DirectX8 Class Demonstration :) ver1.3 - Robin - 04-09-2009

GIAKEN Wrote:Eh people just use my DX7 class to play WAVs.

I'm not gonna run DX7 just for DirectSound.


Re: DirectX8 Class Demonstration :) ver1.3 - GIAKEN - 05-09-2009

DirectX8 is too complicated just for people around here that want to just play WAVs...


Re: DirectX8 Class Demonstration :) ver1.3 - Robin - 06-09-2009

GIAKEN Wrote:DirectX8 is too complicated just for people around here that want to just play WAVs...

It's hardly complicated. Just load a sound into an auto-purging array.


Re: DirectX8 Class Demonstration :) ver1.3 - Nean - 06-09-2009

Robin Wrote:
GIAKEN Wrote:DirectX8 is too complicated just for people around here that want to just play WAVs...

It's hardly complicated. Just load a sound into an auto-purging array.

Haha. Easy for you to say. I'm adequate when it comes to VB6, and I still have quite a few problems using DX7 and DX8. Then again, the learning curve for those two subjects are much higher than that of the regular VB6 syntax.


Re: DirectX8 Class Demonstration :) ver1.3 - Robin - 06-09-2009

Nean Wrote:
Robin Wrote:
GIAKEN Wrote:DirectX8 is too complicated just for people around here that want to just play WAVs...

It's hardly complicated. Just load a sound into an auto-purging array.

Haha. Easy for you to say. I'm adequate when it comes to VB6, and I still have quite a few problems using DX7 and DX8. Then again, the learning curve for those two subjects are much higher than that of the regular VB6 syntax.

Good point. I literally woke up one morning and realised I could do whatever I wanted. That was a fun weekend.


Re: DirectX8 Class Demonstration :) ver1.3 - GIAKEN - 06-09-2009

The reason it's overly complicated isn't because it's hard to implement, it's because there's way too much shit you have to do just to play a simple WAV file when DX7 does it much simpler...


Re: DirectX8 Class Demonstration :) ver1.3 - Nean - 06-09-2009

Robin Wrote:
Nean Wrote:
Robin Wrote:
GIAKEN Wrote:DirectX8 is too complicated just for people around here that want to just play WAVs...

It's hardly complicated. Just load a sound into an auto-purging array.

Haha. Easy for you to say. I'm adequate when it comes to VB6, and I still have quite a few problems using DX7 and DX8. Then again, the learning curve for those two subjects are much higher than that of the regular VB6 syntax.

Good point. I literally woke up one morning and realised I could do whatever I wanted. That was a fun weekend.

That's how I learned SadScript and got started on Visual Basic. I had attempted to learn SadScript numerous times, and then had to go on a seven day trip. Before going, I could hardly do the simplest of things, but when I came back I realized that all of it sort of made sense. The only way that I can think that something like this happened, is I heard that when you study something for a long amount of time, your body subconsciously repeats these actions through your head when you're sleeping. Of course, I can't verify that this is true, but it's the only thing that'd make this seem probable/possible.


Re: DirectX8 Class Demonstration :) ver1.3 - Robin - 06-09-2009

Nean Wrote:
Robin Wrote:
Nean Wrote:
Robin Wrote:
GIAKEN Wrote:DirectX8 is too complicated just for people around here that want to just play WAVs...

It's hardly complicated. Just load a sound into an auto-purging array.

Haha. Easy for you to say. I'm adequate when it comes to VB6, and I still have quite a few problems using DX7 and DX8. Then again, the learning curve for those two subjects are much higher than that of the regular VB6 syntax.

Good point. I literally woke up one morning and realised I could do whatever I wanted. That was a fun weekend.

That's how I learned SadScript and got started on Visual Basic. I had attempted to learn SadScript numerous times, and then had to go on a seven day trip. Before going, I could hardly do the simplest of things, but when I came back I realized that all of it sort of made sense. The only way that I can think that something like this happened, is I heard that when you study something for a long amount of time, your body subconsciously repeats these actions through your head when you're sleeping. Of course, I can't verify that this is true, but it's the only thing that'd make this seem probable/possible.

It seems plausible. I've often woken up to find the answer to my problem in my head, after spending hours trying to work it out the night before.


Re: DirectX8 Class Demonstration :) ver1.3 - GIAKEN - 06-09-2009

Yeah I do that...I have dreams about how to code things sometimes.


Re: DirectX8 Class Demonstration :) ver1.3 - Robin - 06-09-2009

GIAKEN Wrote:Yeah I do that...I have dreams about how to code things sometimes.

Ah, you dream about coding when you're not dreaming about food?


Re: DirectX8 Class Demonstration :) ver1.3 - GIAKEN - 06-09-2009

Robin Wrote:
GIAKEN Wrote:Yeah I do that...I have dreams about how to code things sometimes.

Ah, you dream about coding when you're not dreaming about food?

Yeah about half and half.