nope, i don't...though that would be rather cool :)
i just want to have pictures with a transparency so that i can have a moving background underneath the images...even when i use a PNG file with transparency all the area that should be transparent is made white in visual basic.
i've looked around on here and seen things about the Use Mask Color in an ImageList Control but it doesn't work, the color i want to be the...
User Profile
Collapse
-
-
4 + [( 6 - 9 ) + (8 + 9)] = 15 - [2 + ( 3 - 6 + 8 ) + 2]
parenthesis first
4 + [ -3 + 17 ] = 15 - [ 2 + 5 + 2 ]
now the brackets
4 + 14 = 15 - 9
now the basic math
18 = 6
......hmmmm.... .......that could be a problem........Leave a comment:
-
Thanks Ali :) its not really too big of a deal that i can't play multiple sounds; sounds aren't really too important, just to add some more spice to the program
...so how about the transparency problem then? please?...Leave a comment:
-
Multiple sound effects in VB6
Hello, just one last issue i'd like to figure out for my game...i'm tryin to figure out how to play sound effects in the game. i know how to get background music but for sounds i'd like it somethin like this...
Private Sub KeyDown(KeyCode as Integer)
If KeyCode = (whatever it is for spacebar) Then
Play Sound1 (or whatever)
End If
End Sub
but as for the sounds multiple... -
uh, this should work...
Private Sub Command1_Click( )
Command1.Enable d = False
End Sub
or even on Private Sub Command1_MouseD own(), or even Command1.Visibl e=False to have the button disappear when u click
but i do see this was moved from the Coding Challenges forum...u weren't tryin to be funny were u? :-P
if u weren't kiddin around then...well wut do i say?...Leave a comment:
-
outlook? is that visual basic? :P
well i'd use this, there's probably an easier way but i know how to do it at least :P and this is how it'd be on vb6, but i'm sure its similar with other versions
(In General Declarations)
Dim a, b as Boolean
Private Sub Form1_KeyDown(K eyCode as Integer) 'each key on the keyboard has its own code number
If KeyCode = (whatever it is for ctrl,...Leave a comment:
-
well if u take the barrel as it is, whether somethins already in it or not, puttin a hole in the barrel would lighten it...either that or suck out all the air and make a vacuum...or fill it with wood, paper, flammable liquids, then light a match and throw it in, that would really light it up!
but in all seriousness i agree a hole is the answerLeave a comment:
-
yeah ur probably right...i'll make sure to try it out when i can...i've been readin through the huge manual i have and lookin around on google...
anyways sorry for bein stupid :P ...and thanks for helpin...Leave a comment:
-
aww nobody's gonna help me? :P
...unless i'm stupid and its somethin simple like Read #1, a or somethin like that...but please i dont remember how to load multiple variables from a file
and sorry i dont have access to my usual computer (the one with vb6) so i cant test it out at the moment, but please help refresh my memory?Leave a comment:
-
do u mean while ur working on the project?
well there's the "Find" and "Find & Replace" options in the Edit menu, or ctrl-F for "Find"
and if u mean while the game is running, well then u dont make sense :P unless u mean something like a Call (function) commandLeave a comment:
-
Oops I forgot some stuff, sorry. Forgot to put:
[CODE=vb]write #1, a
write #1, b
for i = (0 to 29)
write #1, c(i)
Close #1[/CODE]...Leave a comment:
-
Using VB6 (as usual :P) and I'm not saving/retrieving a single variable, it's multiple. There will be more but if I know how to save/read 3 it shouldn't be a problem to put more on.
[CODE=vb] Open App.Path & "\" & strName & ".txt" for Output As #1
Dim a as String
Dim b, c(29), i As Integer
a = strName ' [player's name]
b = intDiff ' [difficulty level]
For i...Leave a comment:
-
mrnn started a topic questions about saving/loading multiple variables from .txt filein Visual Basicquestions about saving/loading multiple variables from .txt file
Ok I know how to save and load 1 variable from a file, but when it comes to loading multiple variables, I get confused. And all the articles I've found using Google and on here haven't helped too much.
For example I want to save the player's name (strName), which level they're on (intLevel), and which cheats are available (bolCheats(9), a true-false array). Please help me out.
Also it saves the file to (app.path &... -
-
Not to sound rude but I already know that part, I just don't know how to load the images from the imagelist and put them in the image control....Leave a comment:
-
Ok sorry if I sound dumb here but...how do I get this imagelist control to work? As in, how do I load the pics from the imagelist? I got my pics in it I need but now I need to figure out how to use them
If this helps any the player you control is imgPlayer and the imagelist is PlayerList, index1 pic is standing still and index2-7 is running.Leave a comment:
-
sweet thanks i'll make sure to try that out when i can, thanks for the help :)
...and i dont completely understand the code but as long as it works then i can look it over and understand it, once again thanks :)Leave a comment:
-
sweet thanks for the help guys...
also killer42, i got vb6 enterprise and each number has a separate element...
oh and as for the if/then statement to place the image...it'd be something like this, but i know its not truly it...
if arraynum = 0 [say its the first one on the array]
[create a new image]
[load pic file to place in image]
ifblocking = false [or true if arraynum = 1 or something...Leave a comment:
-
oh found it...duh it was there all along i just forgot the word "windows" in there so i couldnt find it....sorry for being an airhead, i'll try my best not to ask another dumb question like that in the future
and thanks i really do appreciate the help :)Leave a comment:
-
reading each individual character in a file, array style
Hello. I'm workin on a 2d game where the levels are Mario style and will either take up only the screen or be a sidescroller like Mario is (as in the level goes off the main screen) and the levels are going to be made determined by the array given in a certain file.
example:
0000000
0000000
0200020
0x00000
1111111
where 1's would be ground (blocking object), 2 a different blockable...
No activity results to display
Show More
Leave a comment: