Making a shooting game
Making a shooting game
Making a shooting game
Making a shooting game
Making a shooting game
Making a shooting game Making a shooting game Making a shooting game Making a shooting game Making a shooting game Making a shooting game Making a shooting game Making a shooting game
Making a shooting game Making a shooting game
Making a shooting game
Go Back  Xtreme Visual Basic Talk > > > Making a shooting game


Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2011, 01:59 PM
elemein elemein is offline
Newcomer
 
Join Date: Oct 2010
Posts: 14
Default Making a shooting game


Sorry if this looks like a repost as it was in Visual Basic Legacy, but I actually was making the game in VB6 yesterday until I heard the the next Microsoft OS will not support the VB6 runtime, so I upgraded to VB 2008 or VB.NET. So thats why im posting it here. Anway,

Okay, I got most of my game threshed out, and I got all my programming together, Im just missing TWO main points of code for it.

The first main point of code is this; the game is an "over the top view" shooter, so your character is in the center of the screen while you move, and the map scrolls up and down when you use WASD. I know how to make my character move, the problem is the plotting; I dont know how to make the map scroll everytime you move. Also, i cant just cycle images through animations as if I do it that way, when I add a multiplayer server, it simply wont work.

The second part of the code is this; where your character looks is controlled by the mouse. So if your mouse is to the left of your character, your character is looking left, and so on. The thing is, I have NO idea how to make your character look at the cursor, also, I dont know how to make him shoot when you click, and to have the rounds go where your mouse is pointed (where he is looking).

I am also missing one "animation" bit. Basicly, when you shoot, your bullet is in the form of a fast-moving tracer. I already have a .BMP of the tracer, the problem is, I KNOW how to make the tracer move at x speed, the problem is, if my character shoots down, the tracer is going to travel down the screen, except the tracer will be horizontal,becuase thats how it was drawn. Is it possible to change the angle of the .BMP so that it fits to the angle of firing?

Big thanks!

PS. Can I use the XNA Game Studio with the visual basic language or no?
Reply With Quote
  #2  
Old 03-26-2011, 02:07 PM
PlausiblyDamp's Avatar
PlausiblyDampMaking a shooting game PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

Most of the material you see seems to focus on using C# with XNA studio, http://www.alanphipps.com/VisualBasi...nstallXNA.html however seems to have a decent enough set of tutorials on using XNA with VB so it might be worth a look.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #3  
Old 03-26-2011, 03:57 PM
elemein elemein is offline
Newcomer
 
Join Date: Oct 2010
Posts: 14
Default

I cannot learn C#, for several reasons. The first being that I cannot afford a brand new IDE or Language compiler, second is that I simply cant make heads or tails of the language. Actually, I have almost everything worked out except for the things im missing that I aforementioned, anyway, this VB XNA thing looks intriguing, I do want to take a look here. Thanks.
Reply With Quote
  #4  
Old 03-26-2011, 04:37 PM
PlausiblyDamp's Avatar
PlausiblyDampMaking a shooting game PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

Not sure what you mean by affording a brand new IDE or compiler, if you have Visual Studio you have C# anyway, if you are using the express editions then the C# version is as free as the VB version...
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #5  
Old 03-26-2011, 04:48 PM
elemein elemein is offline
Newcomer
 
Join Date: Oct 2010
Posts: 14
Default

Quote:
Originally Posted by PlausiblyDamp View Post
Not sure what you mean by affording a brand new IDE or compiler, if you have Visual Studio you have C# anyway, if you are using the express editions then the C# version is as free as the VB version...
Ah, well that still leaves the problem of me not being able to learn C#. I cannot afford classes, and no one online is willing to teach me. + Im not one of those people who can learn an entire language comprehensively for free just online.

All points aside, can you please just give/teach me the code I need in Visual Basic 2008 for my requests to work?
Reply With Quote
  #6  
Old 03-27-2011, 03:50 AM
Qua's Avatar
QuaMaking a shooting game Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

Your original question is very comprehensive. And not only that, but I see six different questions all relating to widely different topics (math, networking, animation, scrolling maps etc.)

I don't know what (G)UI you're currently using, but I strongly suggest that you move to XNA. It's a huge framework, but if you don't have the time to learn it, you can just as easily make use of a just a few functionalities such as drawing 2D images to the screen.

If you feel like it's a lot to take in (and judging from your question this appear to be the case) then I suggest that you buy a beginners guide to game development in XNA. A good XNA book doesn't have to be that expensive. You can find several both new and used copies on Amazon. The advantage of buying a book is that it will take you through all the basics of creating a game: 2D rendering, animation, rotation, scaling, game loop, game logic and so forth.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #7  
Old 03-27-2011, 07:35 AM
elemein elemein is offline
Newcomer
 
Join Date: Oct 2010
Posts: 14
Default

well what exactly does XNA offer? : S

And is no one able to simply give me or teach me those two bits of code? D:
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Making a shooting game
Making a shooting game
Making a shooting game Making a shooting game
Making a shooting game
Making a shooting game
Making a shooting game Making a shooting game Making a shooting game Making a shooting game Making a shooting game Making a shooting game Making a shooting game
Making a shooting game
Making a shooting game
 
Making a shooting game
Making a shooting game
 
-->