You should get rid of the Val function when dealing with numbers, i.e. You use the Val function a lot, but Val is used to convert a string whose characters represent a number into a numeric type.Ī lot of the places you use Val, the parameter is already a number, examples:īoth volume and ManaMover are Longs, so most likely when you pass a Long to the Val function, VB has to convert the Long into a string, store it someplace, the pass the String address to the Val function, and the Val function converts the string back into a number and returns it for you to use. You have a number of cases where you have variables that were never declared, so they default to variants, which are generally inefficient since the intrinsic type the variant is, is wrapped in the variant meta data so is a little slower to use than if you declared what type you want the variables to be. You should add "Option Explicit" at the top of your forms and modules, or better, turn on the option so that it is automatically added to your code to remind you when you forget to declare a variable. You know who you are! Looking forward to learning more and creating something even better. She walks and breathes at random intervals randomly bidirectional (east & west).Īnd many thanks to the members here on VBForums who helped me along the way. and that dark-looking creature you see in the first and second screenshot is a female troll. The numbers at the top of the Form are x,y coordinates that helped me figure out where to mark some of the objects for collision-detection and so on. The map was designed using a map maker I created in VB6 utilizing tiles I found online. Most 3D modeling applications support at least one of the formats that is supported by Poser, which allows you to import geometries in the following formats: 3D Studio Max (File > Import > 3D Studio) DXF (File > Import > DXF) LightWave LWO files (File > Import > LightWave.) Wavefront OBJ (File > Import > Wavefront OBJ) COLLADA: See. The walk.wav file I couldn't put in the resource file because I needed to call it quickly and repeatedly and I guess it wouldn't load and play that fast because there was just silence, so that's why it's the only. All of the sound files, with the exception of 'walk.wav' are in the resource file (.res). The sound files are from some random sound pack I got a long time ago. The first object of interest passed on the 10th, was the point, called Ramillino, lence. The 'Shop' background is one I found online, and so is Lord Bern, except for his eyes, which I had to create in Poser Debut so that he was looking at you, as the original image had him looking down and to the left. In the poser's first work after a seven years ' rest. The 'Shop' icons are from a designer from. The characters were created with "Poser Debut". I don't care for criticism but ways to improve are welcome, as I have only done Windows programming and have just recently got into gaming. It's not perfect, but it's good to learn from. This example uses BitBlt and On-The-Fly Masking so you don't have to mask the character beforehand. The filesize of this RPG Game is around 20MB, so I put it here:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |