Author |
Message |
Forum: General Topic: On Error On 1 Line of Code? |
Spodi |
Posted: Sun Oct 14, 2007 8:11 pm
|
|
Replies: 22 Views: 8193
|
On Error Resume Next actually isn't too bad. Its kinda like a simplified, unstructured version of Try/Catch blocks. |
|
|
Forum: General Topic: On Error On 1 Line of Code? |
Spodi |
Posted: Sun Oct 14, 2007 6:24 pm
|
|
Replies: 22 Views: 8193
|
Code: Dim SuxArray() As Long
On Error Resume Next MsgBox Ubound(SuxArray) On Error Goto 0
|
|
|
Forum: General Topic: Name Length in Binary |
Spodi |
Posted: Sat Oct 13, 2007 8:18 pm
|
|
Replies: 22 Views: 6148
|
Yeah, so that should work fine with variable-length strings. |
|
|
Forum: General Topic: Name Length in Binary |
Spodi |
Posted: Sat Oct 13, 2007 7:01 pm
|
|
Replies: 22 Views: 6148
|
Most any language that can perform file I/O can create null-terminated strings. :wink: I prefer string size headers myself, since you can define the length then grab the whole string at once instead of this "one byte at a time" stuff. What Robin said, though, would be the easiest approach.... |
|
|
Forum: General Topic: [Solved]Code question (involves MySQL sorta) |
Spodi |
Posted: Fri Oct 12, 2007 7:47 am
|
|
Replies: 19 Views: 8375
|
If it did become a problem, say like a year down the line and your numbers were in the millions, you could easily write a script that will find all the unused numbers, and move the highest indexes down into those unused slots. It'll require just turning down the server for a minute or two, running t... |
|
|
Forum: Old Competitions Topic: VB Mario Contest |
Spodi |
Posted: Thu Oct 11, 2007 10:30 pm
|
|
Replies: 62 Views: 30742
|
About 60 hours or so thus far. |
|
|
Forum: Old Competitions Topic: VB Mario Contest |
Spodi |
Posted: Thu Oct 11, 2007 10:05 pm
|
|
Replies: 62 Views: 30742
|
Same rate I charge for everything else - $15/hr. |
|
|
Forum: General Topic: Old MS Screenshots |
Spodi |
Posted: Thu Oct 11, 2007 9:07 pm
|
|
Replies: 24 Views: 8593
|
Is that a fat guy with a cow bell around his neck in the first one? If so, very delicious. |
|
|
Forum: Old Competitions Topic: VB Mario Contest |
Spodi |
Posted: Thu Oct 11, 2007 8:43 pm
|
|
Replies: 62 Views: 30742
|
I'm getting paid to make it, so its all of my time. |
|
|
Forum: Old Competitions Topic: VB Mario Contest |
Spodi |
Posted: Thu Oct 11, 2007 6:07 pm
|
|
Replies: 62 Views: 30742
|
Yup, its all multiplayer. The server keeps track of every client/NPC's movement, and they stay in sync with some Dead Reckoning algorithms along with just using the same physics. And yup, theres a map editor. |
|
|
Forum: Old Competitions Topic: VB Mario Contest |
Spodi |
Posted: Thu Oct 11, 2007 3:45 am
|
|
Replies: 62 Views: 30742
|
Heres what I got so far: http://www.vbgore.com/temp/platformer.wmv Just did the NPCs today/yesterday. They randomly spawn on the yellow attribute tiles (spawn tiles). Have yet to add a place to define what NPCs spawn and how much per map, though. This is just 1000 randomly-moving/jumping NPCs. There... |
|
|
Forum: General Topic: DirectX 8 |
Spodi |
Posted: Mon Oct 08, 2007 5:25 pm
|
|
Replies: 36 Views: 14729
|
Not sure whats wrong with DirectX 8. DirectX 9 is very similar to DirectX 8, far more than 7 and 8 or 9 and 10, and it does offer more than DirectX 8, but DX8 has plenty for a 2d game, unless you want to make an incredibly graphic-overkill "2d" game that is basically a 3d game with a stati... |
|
|
Forum: Old Competitions Topic: VB Mario Contest |
Spodi |
Posted: Mon Oct 08, 2007 5:22 pm
|
|
Replies: 62 Views: 30742
|
Well what you can do is run a loop through every pixel he moves through instead of just moving one pixel at a time. For instance: Dim StartX as long Dim ToX as long Dim i as long 'Move right for i = StartX to X if GetPixel(i, UserY) = RGB(0,0,0) Then 'The user stops here ToX = i Exit For end if next... |
|
|
Forum: General Topic: DirectX 8 |
Spodi |
Posted: Sun Oct 07, 2007 10:30 pm
|
|
Replies: 36 Views: 14729
|
Sorry to bump, but did you ever figure it out? I'm curious as to what the problem was. |
|
|
Forum: Old Competitions Topic: VB Mario Contest |
Spodi |
Posted: Sun Oct 07, 2007 10:18 pm
|
|
Replies: 62 Views: 30742
|
Funny, I actually just started a project that is a side-scroller like this. I don't have to release the source or anything, do I? Hopefully by then I'll have NPCs done and a very simplistic stat system.
Does MMO support give me bonus points? |
|
|
Forum: Resources Topic: DX8+ |
Spodi |
Posted: Mon May 07, 2007 10:40 pm
|
|
Replies: 66 Views: 36230
|
Just thinking about what it would require to get it to work gives me a headache. I haven't done a DX7 to DX8 conversion in ages, and I am proud of it - its a horrible process full of crashes, bugs and problem solving. :wink: First thing you would have to do is convert your tiles from one huge graphi... |
|
|
Forum: Show Off Topic: Offering my abilities as fanart drawing maker |
Spodi |
Posted: Mon May 07, 2007 3:10 pm
|
|
Replies: 42 Views: 17054
|
Vans wrote: hehe, i made it for the fanart contest. do you play goonzu? im Vanx, a lvl 86 gunner, contact me ingame if u play
You realize who you just said that to, right? |
|
|
Forum: Show Off Topic: Offering my abilities as fanart drawing maker |
Spodi |
Posted: Sun May 06, 2007 11:56 pm
|
|
Replies: 42 Views: 17054
|
|
|
Forum: Resources Topic: DX8+ |
Spodi |
Posted: Fri May 04, 2007 2:47 pm
|
|
Replies: 66 Views: 36230
|
Well you can probably create a DLL to wrap the DirectX calls in another language, then call that from VB, but I see absolutely no point in doing that. It'd just be a waste of time. If you want to use a tool that doesn't work with your language, learn a new one. |
|
|
Forum: Resources Topic: DX8+ |
Spodi |
Posted: Thu May 03, 2007 6:19 pm
|
|
Replies: 66 Views: 36230
|
I personally find Direct3D faster than DirectDraw, too. It may just be since I was more noob using DirectDraw, but you can take the 3d optimizations to a ridiculous level of obfuscation for power. Cards these days just support 3d better than native 2d (the straight copy of one surface to another). S... |
|
|
Forum: Resources Topic: Alternative to GetTickCount |
Spodi |
Posted: Thu May 03, 2007 3:45 am
|
|
Replies: 76 Views: 54796
|
Okay, I don't know why the hell I didn't think of this earlier. It just randomly came to me a while ago. Hope you like it, Verrigan. :wink: Basically, this wrapper will take all the pros of this system and eliminate most all of the cons (adds slight overhead, but hardly anything to worry about). Wha... |
|
|
Forum: Show Off Topic: Pixel Art |
Spodi |
Posted: Wed May 02, 2007 5:00 am
|
|
Replies: 276 Views: 30586
|
Mithlomion wrote: Looks like you used my tutorials..
*bows*
We're not worthy! We're not worthy! We're scum! We suck! |
|
|
Forum: Show Off Topic: Gui |
Spodi |
Posted: Mon Apr 30, 2007 11:20 pm
|
|
Replies: 43 Views: 18261
|
Only thing I don't like is the abbreviations - did you seriously abbreviate "help" as "hel" and "exit" as "exi"? :wink: Also, theres too much wasted space at the top. By wasted, I mean those bars are quite huge, and can easily be shrunken down. The target also... |
|
|
Forum: General Topic: Classes vs Types |
Spodi |
Posted: Mon Apr 30, 2007 4:32 pm
|
|
Replies: 17 Views: 4580
|
I would say a collection of classes would be faster than an array of UDT's, and the classes allow infinitly more possibilities to what you can do. It's a more "professional" way to do things, and also more modern.. It's also abstract, and hard to do. I am almost positive classes would be ... |
|
|
Forum: General Topic: DX7 vs. winAPI - The showdown |
Spodi |
Posted: Sun Apr 29, 2007 11:34 pm
|
|
Replies: 14 Views: 3592
|
DirectX, DirectDraw7 to be precise. |
|
|
Sort by: |