|
-
Oct 6th, 2000, 03:47 PM
#1
Thread Starter
Member
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
-
Oct 7th, 2000, 10:54 PM
#2
Frenzied Member
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!
-
Oct 8th, 2000, 03:51 AM
#3
Thread Starter
Member
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
-
Oct 8th, 2000, 07:40 PM
#4
Frenzied Member
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!
-
Oct 10th, 2000, 05:37 AM
#5
Thread Starter
Member
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
-
Oct 10th, 2000, 11:01 PM
#6
Frenzied Member
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!
-
Oct 10th, 2000, 11:04 PM
#7
Frenzied Member
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...
-
Oct 11th, 2000, 04:14 PM
#8
Frenzied Member
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!
-
Oct 11th, 2000, 05:09 PM
#9
Frenzied Member
-
Oct 12th, 2000, 06:29 AM
#10
Thread Starter
Member
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
-
Oct 12th, 2000, 05:18 PM
#11
Frenzied Member
only wanted to know what graphics board you use.
Sanity is a full time job
Puh das war harter Stoff!
-
Oct 13th, 2000, 01:20 AM
#12
Thread Starter
Member
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
-
Oct 13th, 2000, 05:24 PM
#13
Frenzied Member
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!
-
Oct 14th, 2000, 02:40 AM
#14
Thread Starter
Member
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
-
Oct 15th, 2000, 06:10 PM
#15
Frenzied Member
Didn't I mail you already?
Sanity is a full time job
Puh das war harter Stoff!
-
Oct 17th, 2000, 04:28 AM
#16
Thread Starter
Member
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
-
Oct 17th, 2000, 05:33 PM
#17
Frenzied Member
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!
-
Oct 20th, 2000, 12:33 AM
#18
Thread Starter
Member
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
-
Oct 20th, 2000, 10:26 AM
#19
Frenzied Member
You'll get it as soon as I get it finished in school.
Sanity is a full time job
Puh das war harter Stoff!
-
Oct 25th, 2000, 05:35 AM
#20
Thread Starter
Member
Code:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>> ___ __ ____ ____ _ ____ <<
>> \ \ / / _ | | __| | | | __| <<
>> \ \ / / |_| | | |__ | | | |__ <<
>> \ \/ /| _ < |__ \ | | | __| <<
>> \ / | |_| | __) ) | |___ _ | |__ <<
>> \__/ |_____| |____/ |_____||_||____| <<
>> <<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Visual Basic 5 SP3 Learning Edition.
Sub QuoteOfTheDay()
If ASCII.ugly = True Then
WhatTheHeck.ICare = True
End If
End Sub
-
Oct 25th, 2000, 10:01 AM
#21
Frenzied Member
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!
-
Oct 25th, 2000, 02:24 PM
#22
Fanatic Member
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!
-
Oct 27th, 2000, 09:51 PM
#23
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|