I'm trying to make a trading card computer game with my own trading cards and I was wondering if I can load the sprites of all the cards into an array that looks like this: Dim Card(342) as CSprite (CSprite class helps display the sprite on screen) and not have any problems displaying each one on the screen.
I'm having trouble creating a global array that i can use in other functions.
I have this code right under "Public Class myClass":
Dim LoadedPlugins As Array
Then in a function I have this:
Dim PluginList As String() = Directory.GetFiles(appDir, "*.dll") For Each Plugin As String In PluginList Dim Asm As Assembly
[Code]....
Now obviously that doesn't work, how can I add the tmpPlugin to an array or list so I can use it in other functions?
The main thing I need to be able to do is loop through all the loaded plugins and execute the CustomFunction in a separate function than the one that loads the plugins listed above.
With battleaxe knight loaded and moving, I'd like to add animationI already have the frames for him to be animated, I just don't know how to animate him. (I have no experaince in game animation)
I'm having problems getting random rooms generated without having them over lap one another. I've tried everything that I can think of and none of them work right when there is more than three room being generated, but even then two of the three rooms over lap. Is there any other way to check to see if the rooms are over laping or not. Here is the code I'm using.
i am trying to make a game in vb.net and so far have managed to create a sprite which is animated on key event. the only problem is it able to walk off the form out of site. i want to be able to create some sort of boundary so that when sprite position equals greater or smaller then the form width it can no longer walk in that direction, the same goes for the hight. i have tryed this myself like this
how to do array of textboxes when a user input a number of textbox to be loaded and when the button clicked, the array of textbox that the user enters will appear?
Not wanting to hijack 45minutes thread, I thought I might spawn a thread of my own based on his question.
PlausiblyDamp was kind enough to provide some generic code, which I have modified and attached.
I have made a few alterations mostly around removing random objects, as the game in question (Space Invaders) has a set amount of aliens and set starting positions.
As a start I have limited the UpdatedPostion to horizontal movement as the aliens only go side to side unless they hit an edge.[code]...
I've already tryed using the case key event handler, but I must be using it the wrong way, because VB 2008 express (what I'm using) produces a bunch of errors("Type expected" as well as it won't work). This is what I've tryed:
Private Sub GameField_KeyDown(ByVal Sender As Object, ByVal E As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown Select Case E.KeyCode
I am embarking in the wonderous world of 2D animation and using directx9. I am a complete noob in the world of game engine design etc. I find DX quite usefull and in fact easy to use but in my opinion it's the engine design that makes or breaks the application. There are a massive amount of tutorials on the web explaning how to render a single image to a target but not so much for rendering a lot of sprites.
I have two rich text boxes, and two buttons on my screen. The first button grabs HTML from a URL and then converts the HTML to XML which resides in rich text box 1.
The second button is to grab the XML from the rich text box1 and then parse it to grab all the input elements by their ID.
My issue is that my parser isn't doing anything. My guess is that I'm not quite getting the XML from the first rich text box.
What would be the best way to grab the XML from a rich text box load it into memory and then parse the XML to grab all the ID tags?
I have two rich text boxes, and two buttons on my screen. The first button grabs HTML from a URL and then converts the HTML to XML which resides in rich text box 1. The second button is to grab the XML from the rich text box1 and then parse it to grab all the input elements by their ID.
My issue is that my parser isn't doing anything. My guess is that I'm not quite getting the XML from the first rich text box.What would be the best way to grab the XML from a rich text box load it into memory and then parse the XML to grab all the ID tags?
I have an array of people stored in a custom structure array... how can i copy this array to a temp array so that the temp array has all the same values as the original custom array?
I am trying to create the following program Store in a 1d array a set of 5 place names and in a 2d array the distances between the places. Ensure that the order of the places is the same in both arrays. When the names are places are input the distance between them is displayed. If they are not both in the table a suitable message is displayed
Dim town(1 To 5) As String
Dim Dist(1 To 5, 1 To 5) As Integer
Dim First As Integer
[CODE]......................
I think the best way forward is pass a parameter to the function findnumber.
Can a .WPF file be loaded into a tab or a container in my visual basic application. Ill use one of my code snippets as an example. to load another form into a tab control i use.
Private Sub AllToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AllToolStripMenuItem.Click Dim phoneqq As New PhoneQuote
The title says it all, if you have link on what I need to download please indicate in this thread or please relocate me if there's a thread for this problem.
I have a web service I am working on. Recently I made a whole bunch of changes and now, although I can successfully compile it, when I run it my break-points will not work. The red dot turns into a circle and floating the mouse over it reveals the message:
The breakpoint will no currently be hit. No symbols have been loaded for this document.
I have NO idea what I changed to cause this to begin happening. One big change was to add a reference to a WSDL, but I really don't think that is the problem.[code]...
I have a windows forms Application using DCOM to connect to another server in order to retrieve data from a database. The program works perfectly fine on my develeopment box both inside of and outside of the idea.However it throws an exception on my test box: System.Exception.... TYPE_E_CANTLOADLIBRARY. The error happens when accessing a property of on the the public DCOM classes. The property holds an instance of one of the private classes for the DCOM. I've compared the registries and all the relevant entries seem to be the same. When I compared the dumps I noticed that System.Config and System.XML werent loaded on the test machine, even though they are installed and appear to be in the GAC.
I have a .NET DLL that writes to the Trace. But it seems that when I call my DLL from a VB6 EXE the trace is not working. I have created an myApp.config file in the EXE folder with the trace configuration, but this does not solve the issue. I've also tried creating the Trace objects in code, but doesn't work:
im using a Dataset which loads XML from xml file on form startingit has one more form in which button click event adds a table to dataset but while adding it , compiler gives error like" DataSet loaded from XML , editing is not possible (like that)"
I want to draw a histogram when Form2 is loaded, I load Form2 using button of Form1 It didnt work, Form2 is loaded, but no image...i dont know why here's the code
Private Sub Form2_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint Dim img As Graphics = PictureBox1.CreateGraphics
I have the following piece of code which retrieves records from an Oracle database and loads it into a datagridview. The problem is that the first record returned by the query is never loaded into the datagridview. I already counted the records (on the commented part of the code) and the DataReaderOracle object counts allways one more record than the ones loaded into the datagridview.
I am trying to create a simple game for children for my final year project, I have a number of form that will display a different type of question for each form. I am aware of the form1.Show() and form1.Hide(), is there anyway that I can load a form on random. for e.g, lets say I have form1, form2, form3, form4.I want the order of the forms to be shown in random order.
Is there a way to check if a form has been loaded yet? I saw in C# they have a isLoaded property, but it doesn't seem to exist in the VB.Net Form class?
I am trying to create an inherited form- when I go to add it, I get the following message- "CustomerInformation --- The base class 'Object' could not be loaded. Ensure the assembly has been referenced and that all projects have been built"
I have a few module questions i'd like to ask as i cant find much info on the internet.
How do you know if a file is locked by a module? I know how to display modules of a file but surely all 10+ DLL are actually locking the file from being deleted?
Basically im wanting to make a file unlocked.Secondly is this the correct way to unload a DLL