i am currently trying to make an invaders-like game with visual basic 2010.I've managed to make one alien (picturebox16) dissapear when the coordinates of the arrow (picturebox1) kinda matches the coordinates of the 16th alien, however, the second alien(above it) doesnt dissapear(picturebox4)?
Im creating a space invaders game that has a group of "invaders" moving side to side and when i shoot one it gets destroyed, my invaders are in an array. So in order for the invaders to keep moving right until they get to the edge, i made a function that detects which invader is right most. But this was crudly done as I wa trying to make the opposite of my left most function which works. So my rightmost function dosent work
i'm not very familiar with GDI+, but i managed to create some basic functions of Space Invaders game i try to develop in Compact Framework. I have problems drawing the images (Spaceship, bullets, enemies). The screen is flashing a lot. I use a buffer bitmap in which i draw images to the new positions, and i have 1 line of code that just draws the buffer to screen
[Code]...
i use me.Invalidate inside a timer so every 50msec the game redraw the screen with new positions. Why the buffering does not work?? It can't be the emulator that i preview the program, it is flashing A LOT. Is there any similar code / project that could help me? i'm tring to find a similar project for COMPACT FRAMEWORK but i only find C++ .net examples. i need VB .NET COMPACT FRAMEWORK examples
I'm trying to make a space invaders rip off, and I'm currently stuck on how to make the missile fire from the center of the player's ship. I have the missiles all in a control array, and they move up the screen fine, they just dont start at the x point of the ship, they start on the left margin.
Dim Line As Integer
If Missile(0).Location.Y < 391 Then
Missile(0).Location = New System.Drawing.Point(Line, Missile(0).Location.Y - 5)
I've got everything working except this one problem which I can't seem to get my head around.I've made a function that returns a random number between 1 and 11 (how many invaders there are on a row).I've managed to get this to work, however the invaders will keep firing even if they are visible, so I made a do until loop which says to keep running the random number until it finds an invader which is visible... The problem is that if the whole row of invaders aren't visible, it will get stuck in the loop.
Been given an assignment to create a space invaders game. Although there's a long way around, is there a way to make my code smarter.Here's the section to make a row of invaders so far:
Public Class Form1 'number of invaders in a row (horizontal) Dim numberofinvaders As Integer = 11 'set of invaders (vertical)
[code]....
So what I want to do more precisely is have the value of setofinvaders to change how many rows of invaders vertically in a loop.
I need to make a matching card game in VB 2010. i have generated my cards but now need to show the cards for 10 secs then change the cards to (AppPath & "Cards ed.png"). then when a user clicks on the card the card will flip over.*How would i set a timer to turn all my cards into*(AppPath & "Cards ed.png") after 10 secsbut still have the values from the array and when i click the cards they flip over (from red card to numbered card)
Code: Private Sub Place() Dim Counter As Integer = 1 For Row As Integer = 1 To Int_Grid_Size
On the Form1.vb I've to combo boxes, 1 to display class names and 1 for levels. Also have some Labels to display i.e. the base_STR number. But after trying random stuff to get it linked and closed VB to restart again because it was messed up too much
I am using Vb 2010 I am trying to make a matching game. My problem is I have picture boxes 16 to be exact. I want each one to randomly go to a certain place I have already picked on the form. That means that I have 16 places already picked and I have made point variables for all 16. I can not seam to randomize the picture boxes to be placed in only those 16 locations.
Yup,not PHP but it's the same for readability)As you may imagine I want to make a simple text based rpg game, but that's not an important fact.The buttons btn1 to btn3 are already created at the designer, and there are going to be other procedures which will assign values to their text property according to the game context (main menu, combat, shopping, training, etc.) you're at.Ok, so what I want to do with that procedure I pasted is to parse the text of ANY of those buttons when I click them, and according to its value select a case which will trigger another appropriate procedure (now there are only msgboxes as placeholders for testing only).My problem is that I dont know how to refer to the originating class of the handled event! I mean, let's say I click btn2. I'll want to immediately get the text property of that button only and use it as the value for the select case tree. I suppose I need to put something at that ?I wrote there, but I don't have any idea. The first time I was so naive to put me.text in there, and of course it returned the form name. Is there's something to do this thing...? I thought at first it would be a very simple task, but I'm going nuts searching for a solution so it's like if it was not possible, but I find hard to believe that, because this would be very useful, right? By the way, what I want to achieve is not needing to make a separate procedure for each button and to avoid as well the need to move any game option to another procedure if later on I want to rearrange the menus, because I expect the game to have more than three buttons actually.
im trying to make a game in visual basic in which your character can move around, jump, and kill things. I can get the picture box with the character to move and everything is fine. but i did run into one problem. when the character moves over a tree (or something) you can see the gray backround of the character as i made in paint. how do i make the backround of the picturebox transparent?
I am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.
My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.
Below is an image to illistrate my problem
I have tried adding transparent background, transparant key etc
I'm doing a project for school. I'm trying to make a game similar to the Impossible game. I need a square (picturebox) to jump but I want gravity to effect it.
I want to make a program that enables a game to have more than one instance running, where it would otherwise be unable to be done. How should I go about this? A sandbox? Hack?
I've already coded the IRC Client, but what would be the code to make the app overlay in the fullscreen DirectX game ? And i've already tried to the TopMost function.
I want to make a simple 2d game in Silverlight, but it seems like things have changed since the last time I tried to make a game using mode 13h graphics. Can someone give me a run-down of how you'd go about it.I just mean at a high-level, focusing on the silverlight-specific aspects; not general game design.A fictional example might be:'The main game loop shouldn't be a loop, use a DispatchTimer instead. Use a Canvas as the main drawing object; but realize that we don't bother drawing individual pixels - all of your in-game objects should be represented by controls. Be sure to set the 'UseHardwareFlag' to true'.
I am trying to do a game application similar to chess, where i need to move the game peaces(graphics) over another graphics which is the game board. using the mouse. How can I do multiple layers of graphics and control their movement(without using direct x, i know nothing about it)? Note: I have visual basic 2010 express, windows xp home
I'm trying to make a 2D game in VB. As a first step I'm going to make a playing field (a form) on which I will put a character. The character should be able to move up, down, left, and right when you press the arrow keys. How do I start off with this and what should I start off with learning?
I already know the basics in how to make normal apps with buttons, text boxes, labels and so on but I don't quite get how I should start off with something like this.Also I wonder about XNA and VB.Net. Can you use them together or is XNA only for C#? I found some stuff while googling suggesting that XNA for VB.Net had been released.
When my picHero enter a room where a picEnemy exists I should make the picEnemy follows picHero no matter how it moves up, down, right, left and as picHero is moving 5 px i want to make the picEnemy moves 4 px. I've tried to do use a condition as Code: if(picEnemy.location.X <> picHero.location.X) then location = new point (picEnemy.location.X+4, picEnemy.location.Y) picEnemy.location = location endif Also for the Y axis, but it didn't work.
I am making a simple blackjack game for school.It involves using object arrays and for next loops.I have 5 labels for the player, and 5 labels for the dealer. I have both their totals displayed on the form. I also have a deal, hit and stand button. I also need to follow the rules of if the dealer >= to 17 they must stand and if the dealer is < 17 they must hit. Does anybody have any suggestions on how i can code the dealers turn.I already made it so the player clicks hit and when he/she is done clicks stand. This is my stand button so far:
lblTotalDealer.Show() lblD1.Show() Dim itemarray2() As Label = {lblD1, lblD2, lblD3, lblD4, lblD5}
i have zero programming knowledge and wanting to learn programming from seeing people making bots for online games, i always seek the knowledge if things and wonder how they do them, even though its pretty useless motive lol i just want to know what knowledge needed to making bot for online game am learning know VB.net 2008 got visual basic step by step book for 2008, i was searching for online game hackers forums and hear them type things like hooks, packets sniffers , etc , so what things do i need to learn beside visual basic 2008 to make bots for online game? i wonder how can i connect my program to other programs
How could I start making a Go game? I just need some logic for it, and maybe some code, and then I can do the rest. How can you tell if an area is enclosed, which areas on the board are full, etc.? I also need ideas on how to find infinite capture/retrieve cycles.
ive tried playing with the code, references, settings, resources but cannot get this code to work Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Startgame.Click Dim ss As String = Startgame("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft",
I want to make an ingame menu. When you open a game a menu will pop up with a hotkey. I don't need you to do the work for me I just need a sample of a ingame menu with a hot toggle (ie: the menu doesnt need an interface, a black square that pops up with key).
How would I make a 3D game (With Blender models), in Visual Basic, with a chat, and you can see other people?(Like see other people walking around, and if someone pulled out for example a sword, you would see that)