Results 1 to 23 of 23

Thread: RPG menu??? Is that possible?

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39

    Unhappy

    If you've played rpg games like chrono trigger, final fantasy series, etc...
    Then you should know how the menu(s) look like
    Any idea on how i can do something similar in VB
    using GDI or DDraw?
    Please include source code if possible
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    sorry it's so long ago I saw FF. can you tell me how the menues looked like? I'm sure you could do something like this with the help of DDraw! In the worst case with help of D3D
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    mmm...
    it look like this

    you'll select the choices

    |===>==Status====|
    |======Item=====|
    |======Equipment=|

    the '>' indicate's the arrow. users will use their keyboard to select not mouse
    I'm using one picture box with some textures (=):

    |================|
    |================|
    |================|

    (the picture)

    the three wordings are labels
    but i'm hoping to use the whole menu(including the text) as a picture to and an arrow for the user which is seperated
    any help though?
    thans

    [Edited by nameJack on 10-08-2000 at 04:58 AM]
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  4. #4
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hm I allready did this for my 3D pong game:

    PseudoCode:

    ActSelection as byte

    do
    x=0
    y= ActSelection * labelheight
    dds_back.bltfast x, y, ddsArrow
    if key = up then ActSelection = ActSelection -1
    if key = down then ActSelection = ActSelection +1
    loop

    of course you got to check, that the ActSelection doesn't become smaller 0 or higher than the count of your options.

    Ps Are you German? Because of your name. If not: Of course the name doesn't sound very German, but there is an internet service!
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39

    Smile

    Actually I am not German though I always wanted to go there.
    ANyway can I have the game you mention... the 3D Pong izzit?
    where can I get it?

    I get a little idea on how the code works
    Can you give me a simpler one?

    Regards
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  6. #6
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hm I send the pong to you, but give me your graphicboaerdname first.

    the code is the easiest i can give.
    Ill send you an example soon, so you'll get it!
    Sanity is a full time job

    Puh das war harter Stoff!

  7. #7
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Did you use D3D for it? I have a 3D pong example that is kind of like a wireframe and I forgot who made it...

  8. #8
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I programmed it without any examples for pong, only some D3D example stuff form the SDK

    give me your email
    Sanity is a full time job

    Puh das war harter Stoff!

  9. #9
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

  10. #10

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    graphicbooardname

    what is that?
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  11. #11
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    only wanted to know what graphics board you use.
    Sanity is a full time job

    Puh das war harter Stoff!

  12. #12

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    Oh...
    I uses AGP card
    resl: 800 x 600
    mmm....
    Anyway...
    I hope I'll understand what you'll send me cos what I want now is learning how to create the menu...

    Regards
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  13. #13
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hm man all you need is to change the y value of the where to blit thing! that's all!
    Sanity is a full time job

    Puh das war harter Stoff!

  14. #14

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    Oh... Thanks though
    I'm looking forward to your mail

    Regards
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  15. #15
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Didn't I mail you already?
    Sanity is a full time job

    Puh das war harter Stoff!

  16. #16

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    I don't think so
    Have you mailed it to me?
    Maybe I gave you a wrong one
    Try sending again
    Thanks a lot

    Bye

    Regards
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  17. #17
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hm what exactly do you need? the menu?
    all you got to do is:

    set a variable
    In this variable is the selection stored!
    Than:
    You use a loop. In this loop you can change the selection. Just if you press up then selection = selection -1
    and when down then the same with +1!!!
    Than when you pressed enter exit the loop execute the selection!
    That's really all.
    Because you wrote about DDraw, I think you know how to draw something, so just draw it to your selection!


    Sanity is a full time job

    Puh das war harter Stoff!

  18. #18

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    Hmm...
    Sounds simple
    It'll be easier if you could include the codes as well
    Actually I only now GDI and not DDraw
    But I do understand what you meant
    Anyway a code will do (not pseudo code)

    Regards
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  19. #19
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    You'll get it as soon as I get it finished in school.
    Sanity is a full time job

    Puh das war harter Stoff!

  20. #20

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    Oh...
    Thanks

    Regards
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

  21. #21
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I post this to get the thread to the top again, cause I can't help NameJack in the moment cause I'm gettig sick in the moment!
    Sanity is a full time job

    Puh das war harter Stoff!

  22. #22
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Try to do something like This:
    Note that my code is very messed up and hardly works...


    Code:
    Option Explicit
    Dim selected As Integer
    
    
    Private Sub Form_KeyPress(KeyAscii As Integer)
    Select Case selected
    Case 0:
        If KeyAscii = vbKeyUp Then
            selected = 3 'start over
        ElseIf KeyAscii = vbKeyDown Then
            selected = 1 'selected + 1
        End If
    Case 1:
        If KeyAscii = vbKeyUp Then
            selected = 0 'selected - 1
        ElseIf KeyAscii = vbKeyDown Then
            selected = 2 'selected + 1
        End If
    Case 2:
        If KeyAscii = vbKeyUp Then
            selected = 1 'selected - 1
        ElseIf KeyAscii = vbKeyDown Then
            selected = 3 'selected + 1
        End If
    Case 3:
        If KeyAscii = vbKeyUp Then
            selected = 2 'selected - 1
        ElseIf KeyAscii = vbKeyDown Then
            selected = 0 'start over
        End If
    End Select
    
    ''refresh the images;
    Call refreshImages
    
    If KeyAscii = vbKeyReturn Then
       Call images_Click(selected)
    End If
    
    End Sub
    
    Private Sub Form_Load()
     '''load images
     '''call the images fucntion
     selected = 0
     Call refreshImages
    End Sub
    
    Sub refreshImages()
    Dim tmpStr As String
    Dim i As Integer
    
    tmpStr = "\image"
    
    ''load images first
    For i = 0 To 3
    images(i) = LoadPicture(App.Path & tmpStr & i + 1 & ".gif")
    Next i
    
    ''hi-lite the selected image
    images(selected) = LoadPicture(App.Path & tmpStr & selected + 1 & "_up.gif")
    End Sub
    
    Private Sub images_Click(Index As Integer)
    Select Case Index
    Case 0:
       ' do something
       MsgBox ("image" & Index + 1 & " is selected")
    Case 1:
      ' do something else
      MsgBox ("image" & Index + 1 & " is selected")
    Case 2:
      ' do something else
      MsgBox ("image" & Index + 1 & " is selected")
    Case 3:
      ' do something else
      MsgBox ("image" & Index + 1 & " is selected")
    Case Else:
       ' this is probably an error, so
       ' display an appropriate message
    End Select
    End Sub
    
    Private Sub Timer1_Timer()
    Call refreshImages
    End Sub
    
    ''My form properties:
    ''what                         name
    ''''''''''''''''''''''''''''''''''''''
    ''Form1                        Form1
    ''Timer1                       Timer1
    ''Picture1(0 to 3)             images(0 to 3)
    ''''''''''''''''''''''''''''''''''''''''''''''

    Please let me know if you have problems with this code because i know its really lame, i didnt debug it.

    Cheers!
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  23. #23

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39
    It's really decent of you guys to help me out here
    I have not tried the code up there coz right now I'm taking an exam. Just came in to see the growth
    If I manage to finish the game... credits will be given to everyone who help me especially friends from vb-forum
    However, u guys gotta still help me
    I'm still green

    Thanks


    Be back on 3 November 2000
    Code:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    >>  ___      __ ____   ____     _         ____    <<
    >>  \  \    /  / _  | |  __|   | |       |  __|   <<
    >>   \  \  /  / |_| | | |__    | |       | |__    <<
    >>    \  \/  /|  _ <  |__  \   | |       |  __|   <<
    >>     \    / | |_| |  __)  )  | |___  _ | |__    <<
    >>      \__/  |_____| |____/   |_____||_||____|   <<
    >>		      			          <<
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          Visual Basic 5 SP3 Learning Edition.
    
    Sub QuoteOfTheDay()
    If ASCII.ugly = True Then
      WhatTheHeck.ICare = True
    End If
    End Sub

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