Move Multiple Sprites Simultaneously?
Jun 18, 2011
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]...
View 15 Replies
ADVERTISEMENT
Jul 29, 2010
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.
View 3 Replies
May 5, 2010
I used different backgroundworkers to instantiate some 'heavy' forms thinking that it will reduce the time to instantiate them if I did them at once but it looks like I am wrong since it is still taking about 43 seconds to load all of them. Am I missing something or do you have a tip on how I can speed up their instantiation?
View 15 Replies
Feb 18, 2010
I am creating a GUI that monitors the entered application and if the application crashes the GUI starts the application back up. Problem is to run this application (WoW Private Server) I need 3 running applications. Is there a way to shell and wait 3 applications all at once. OR if i was to create a separate console application who's only job was to start the three applications at once how would I pass the application variable?
Here is my program thus far: [URL]
View 8 Replies
Feb 17, 2011
We are looking to design a security application that does the following on laptops:If the ethernet adapter is used (cable plugged in) disable/block all other network connections (wireless WIFI, mobile broadband (PPP), virtual VPN adapters etc)When ethernet adapter is not being used again, all connections allowed.We have looked in the WMI a lot but there are no good ways of doing this. Only disabling the network connection is not secure enough because most mobile broadband applications try to re-establish the connection. This should be an application that works on all laptop vendors without any user interaction (such as choosing interfaces etc..).
View 3 Replies
Feb 7, 2012
I'd like to allow the user to select up to an entire column of cells and type and/or paste a single value that would then change the value of all the selected cells in the DataGridView to the value that was typed or pasted. I understand this is probably two separate answers, but perhaps if there is a way to set the contents of the clipboard with the value typed, I was thinking it may work well to identify both things I want to do.
View 3 Replies
Dec 14, 2009
I need to play multiple files simultaneously at the moment i am trying to use mciSendString() API it plays the files listed in a listbox. But it is only playing the first one i assume it would play the next one after the first is finished... cbf waiting to see.
Note this was an attempt in C#:
private void PlayButton_Click(object sender, EventArgs e)
{
if (SongsListBox.Items.Count > 0)
{
[Code]....
View 3 Replies
Feb 6, 2010
I have been using the My.Computer.Audio.Play method for sounds in my program for a very long time, but now I have reached a point where the program needs to be able to play more than one sound at a time. What is the best (and preferably simplest) way to do this?
View 8 Replies
Dec 13, 2010
I want to play multiple sounds simultaneously from My.Resources in Visual Basic 2010. I have tried:My.Computer.Audio.Play(My.Resources.SoundName, AudioPlayMode.Background)
I have also tried using multiple Windows Media Player controls, but that also didn't work.The first sound is cut off when the next sound plays.When searching around the internet I found people suggesting using 'DirectSound', but there are only tutorials for DirectSound in VB 6.0.
View 1 Replies
Jun 6, 2012
How to run multiple funcations simultaneously using multithreading concept?
Actually i am making a software which has backend tool as MS ACCESS. it has 15000+ records in database and i need to display that records as my software loads..but it is much time consunable and sometimes it even goes out of time exception
View 7 Replies
Nov 6, 2009
I'm writing a program which gets the time and date from forums which only show "x hours ago" on the main thread list.What I do is get a list of threads, open their print version and fetch the info.I'm currently using a single webbrowser, because there's no control array anymore. This makes the proccess very slow.Is there a way to open all the threads' print versions simultaneously?(BTW, I'm using DOM functions like GetElementsByTag, so I'll need to get the page's "Document" object.)
View 8 Replies
Apr 16, 2009
I have three listboxes with vertical scroll bars. I'd like it so that when one is scrolled, so are the others. However, I can't seem to find a "scroll" event. I tried this:
vb.net
Public Scrolling As Boolean
Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown
If e.Button = MouseButtons.Left Then
[code]....
It works when you click and drag on the listbox area where the items are, but not when you click on the scroll bar!
View 4 Replies
Mar 25, 2010
Consider I have a shared function:Public Shared Function CalculateAreaFromRadius(ByVal radius As Double) As Double
[Code]...
If I have two or more threads in the same vb .net app and each of them calls the shared function at the same time with different RADIUS, will they each get their own AREA? I want to know for each call to the function if it is using same local variables or each call creates new instances of local variables?Will the answers to above questions be same If I have multiple (2+) single threaded apps and they all call the function at the same time with different RADIUS value?
View 2 Replies
Jul 14, 2011
Using Visual Basic in Visual Studio 2008, I have created a Windows form with multiple tabs and questions. Each question has an associated drop-down listbox that the user will eventually click on to enter his or her response. My client has now informed me that she wants to change the standard responses in each response box. There are well over 100 drop-down listboxes, all with the same items, and they all must be changed.
I originally inputted the items using design view. Would someone please tell me if it's possible to edit all of these boxes in the design view simultaneously? When I control + click on more than one box, the Edit Items option that is normally available disappears. Is there a way to do it in code in a manner that would save back into design view?
View 9 Replies
Apr 22, 2009
I've created a two-worksheet template in Excel - the first sheet is for pretty charts, and the other sheet is for the data that drives those charts. I've written a vb.net 2005 app that can dump in all my data on the second worksheet, and the chart worksheet updates perfectly.I would like to do this report several times over in the same workbook. (So the tabs would read 'Person1 - Chart', 'Person1 - Data', 'Person2 - Chart', 'Person2 - Data', etc.)
My solution was to, for every person this report was going to be run for, copy the chart template, and then copy the data template. The problem is that every chart template that is created points to the original data worksheet. How can I set what worksheet each chart worksheet is pointing at?
View 3 Replies
May 31, 2011
I have two unrelated databases and I need to pass data back and forth between them. Right now I have created two separate entity models - one for each database - but this is causing issues in my code b/c I have to do a Using nameofcontext / End Using and when I try to then use some of the results from the first section of the code in a second Using nameofcontext / End Using it doesn't like it - b/c I've closed the connection to the first database!
View 1 Replies
Jun 9, 2011
I'm making a simple game. I want simultaneously go up and left.
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
' If e.KeyCode = Keys.Z Or e.KeyCode = Keys.Up Then
[CODE]...
Left, right, down and up work. now diagonal.
View 1 Replies
Feb 8, 2010
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)
View 5 Replies
Mar 23, 2011
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.
[Code]...
View 11 Replies
Aug 17, 2011
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.
View 1 Replies
Dec 20, 2009
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
[Code]...
View 2 Replies
Jan 28, 2010
I'm trying to control him using the arrow keys.
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
[Code]....
View 4 Replies
Oct 31, 2009
how to move 5 picture boxes at the same time. Like making them bounce on the walls of the form and each other.
Here is my Code
Public Class Form2
Dim xSpeed, ySpeed As Integer
Dim iClicks As Integer
[Code]....
The problem is that the picture boxes do move but, they move at the same time. For example if Pb1 hits the left side of the form all of the other Picture Boxes will to.
View 2 Replies
Jan 15, 2012
I have an external harddrive and I usually backup my desktop with a cleanup folder which I usually move to the external harddrive.
The problem is: when I search for a file (i.e. example.mp3) I will find multiple copies which are taking up way too much space.
Is there an app or some code that can search for an extension (i.e. .mp3) and if it finds more than one copy of the same file, it can delete the extra file?
The reason I ask is: I have around 1300 different mp3s on my external harddrive and most of them are extra copies of the same mp3. When I search for the extension mp3 and I want to move all of the mp3s to a single folder I am prompted way too many times for overwriting or keeping the same mp3 file.
I need an app that can force the move without prompting and delete the extra copies; so, I am left with only one copy of each.
i.e.
mp3 files on external hard drive for backup:
song.mp3 > in one folder
song.mp3 > in another folder
[Code].....
View 12 Replies
Sep 20, 2008
How do you move multiple Pictureboxs at the same time in one dirction like up down left right with arrow keys in visual basic 2005 express edition
View 1 Replies
Jun 30, 2009
I'm going to try this again since last time I asked (a long time ago now) I didn't get many responses. Maybe someone who knew didn't see my post or maybe someone new is around who might know. I want to add a file drag and drop feature to my program that allows people to drag files onto my form and when the files are released on a path (that is stored in a listbox) it moves/copies the files to that folder. I have all that working but what my issue is that each file has to be handled individually.
Now, Windows can move multiple files all in a single group; it calculates time till completion based on the cumulative size of all the files and shows a progress bar in that way. Currently, all I can do is either let it happen, or show a progress bar for each file. Does anyone know how to get files in an array of files to drop to display like Windows does with multiple files when moving or copying.
View 19 Replies
May 19, 2011
I'm having a problem with moving items between list boxes, i'm fine with moving an item from 1 list box to another but thats 2 boxes and i have 4. I basically want to know the code to move 1 item from a list box to any of my other 3 list boxes.
View 5 Replies
Oct 27, 2011
I wish to simulate multiple mouse move and click events for multiple mouse for emulation of mice in mouse mischief for a kinect project im working on. I want to emulate a mouse for each person on the kinect that is recognized using microsofts kinect sdk and be able to do a left mouse click for each person.
View 1 Replies
Apr 20, 2009
I have a MDI WinForms application that can perform several tasks. Each task is running as a backgroundWorker.What is the good approach to control the running threads:check whether the specific thread is running stop specific thread ?For example it shouldn't be possible to run the same task simultaneously.May be I need a separate class where I can store isTaskRunning variable?
View 1 Replies
Aug 17, 2011
I have two websites "WEBSITE 1" and "WEBSITE 2"...now i want that when someone logs in to "WEBSITE 1" he does not have to log in to "WEBSITE 2" and vice versa...ie when he/she logs in to any one of he websites and opens the other one simultaneously he/she does not have to login to the other one.For eg :- when you are logged in in gmail...you do not have to log in in youtube or orkut or google+
View 1 Replies