Results 1 to 9 of 9

Thread: So you ***** want to make games......

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341

    Angry

    Wanna make games ??

    Pop along to http://www.morfit.com and get their FREE engine. They have a good level editor and engine. It's easy to use.


    [Edited by PsyVision on 06-04-2000 at 05:03 PM]

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Posts
    95
    that's better.



    [Edited by Zej on 06-04-2000 at 05:30 PM]

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Pretty harsh words. How about we just say, please don't advertise?

  4. #4
    Guest
    You should have seen the topic before they both edited it. I did...and I also decided not to reply

  5. #5
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Yeah I saw it.

  6. #6
    Guest
    Just don't make it a habit.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341

    Question

    how can i use:

    Picture1.PaintPicture ...

    To take a screen shot ?

  8. #8
    Guest
    put this in a module


    Code:
    Option Explicit
    
    'API
        Public Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
        Public Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
        
        Public Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
        Public Declare Function GetDesktopWindow Lib "user32" () As Long
        Public Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
    put this in the forms code thingy


    Code:
    Option Explicit
    
    Private Sub cmdBitBlt_Click()
        Dim DC  As Long
        
        'Get DC of desktop (=screen)
        DC = GetWindowDC(GetDesktopWindow)
        
        'BitBlt to Buffer
        BitBlt Buffer.hdc, 0, 0, Screen.Width / Screen.TwipsPerPixelX, Screen.Height / Screen.TwipsPerPixelY, DC, 0, 0, vbSrcCopy
        
        'Release DC
        ReleaseDC frmMain.hwnd, DC
    End Sub
    
    
    Private Sub cmdClear_Click()
        'Clear buffer image
        Buffer.Cls
    End Sub
    
    Private Sub cmdExit_Click()
        End
    End Sub
    Private Sub cmdStretchBlt_Click()
        Dim DC  As Long
    
        'Get DC of desktop (=screen)
        DC = GetWindowDC(GetDesktopWindow)
        
        'BitBlt to Buffer
        StretchBlt Buffer.hdc, 0, 0, Buffer.Width, Buffer.Height, DC, 0, 0, Screen.Width / Screen.TwipsPerPixelX, Screen.Height / Screen.TwipsPerPixelY, vbSrcCopy
        
        'Release DC
        ReleaseDC frmMain.hwnd, DC
    End Sub
    put 4 command buttons on the form.

    one named
    cmdBitBlt
    another name
    cmdStretchBlt
    one named
    cmdClear
    and one named
    cmdExit


    and put a picture box on the form called Buffer

    this was from fox's website



  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341

    Talking

    Thanks, I got the one from Fox! and edited it for my use and put in a save picture thing. Thanks Again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width