Game Help pls
Game Help pls
Game Help pls
Game Help pls
Game Help pls
Game Help pls Game Help pls Game Help pls Game Help pls Game Help pls Game Help pls Game Help pls Game Help pls
Game Help pls Game Help pls
Game Help pls
Go Back  Xtreme Visual Basic Talk > > > Game Help pls


Reply
 
Thread Tools Display Modes
  #21  
Old 01-08-2005, 09:43 AM
N_S N_S is offline
Freshman
 
Join Date: Dec 2004
Posts: 32
Default


By all means, keep debating! Just readin what you guys have to say hlps a lot.

Elnerdo, the way that you were explaining (the one that is inefficient), thats the way that I figured out on my own Your right though, it doesn't always give consistent, desirable results.

Basically, i used bounds.intersectswith(.bounds) and made it so that, if picbox1 (say the laser) hits pic box2 (say the aliean) then hide() alien or dispose() alien. Then i made it so that the picbox2 moved off the form, basically pushin it out of the game window. This sort of works, but I can be certain. And also, the pic boxes wit aliens dont always get hidden on first intersection (or so it seems) -- that is, if pic box1 goes over pic box2, pic box2 doesnt always seem to be hit (and disappear). A well...

Question for Iceplug,(maybe this has been explained already), will your way work with pic boxes? I thought i read that it involved drawing each alien...If this is true, than maybe i have to redesign this. I started it based on pic boxes, intending to explore a few new controls. So, i dont really know how to draw an alien (if u catch my drift)

PentiumGuy, I guess i haven't really explored much of what you had to say. This probably being because I wanted to make things as simple as possible (and I don't fully understand what you were saying). Again, I'll try and follow this stuff, try to figure somethin out!

Of course, if you care to explain this to me, it would be a great help (same to you iceplug)

Thanks guys.

Last edited by N_S; 01-08-2005 at 09:53 AM. Reason: Forgot something
Reply With Quote
  #22  
Old 01-08-2005, 08:45 PM
N_S N_S is offline
Freshman
 
Join Date: Dec 2004
Posts: 32
Default

Ok, after a day of hard work (not! ) I got my game to work (somewhat) to my liking.

One question, though. How can I make form2 become the default screen, meaning, it will come up before form 1. Moreover, I want to accomplish this WITHOUT changing the property names of form1 and form2 (because I know this way works, and want to explore another way).

I tried something called TopMost...

this isn't doin anything though...maybe I've done something wrong?

Code:
Form2_Load('blah, usual here) Me.topmost = true end sub

I'm probably wrong, so plz hlp me out.

thanks guys.

Last thing (I hope.). If i wanted to add a background image to the form, would i go under properties, and backgroundimage, then specify the file for the image? (Please tell me there's another way, because doing it like this creates a TON of lag...)

Last edited by N_S; 01-08-2005 at 08:59 PM. Reason: vb tags
Reply With Quote
  #23  
Old 01-09-2005, 08:46 AM
Iceplug's Avatar
IceplugGame Help pls Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

Quote:
Question for Iceplug,(maybe this has been explained already), will your way work with pic boxes? I thought i read that it involved drawing each alien...If this is true, than maybe i have to redesign this. I started it based on pic boxes, intending to explore a few new controls. So, i dont really know how to draw an alien (if u catch my drift)
I'm not sure that it will work too well with pictureboxes, but setting their Visible properties should cause the aliens to disappear. I usually recommend GDI+ for use in making games, because controls aren't really made for being moved around frequently.
Quote:
How can I make form2 become the default screen, meaning, it will come up before form 1. Moreover, I want to accomplish this WITHOUT changing the property names of form1 and form2 (because I know this way works, and want to explore another way).
If you go over to your project in the Solution Explorer, right click and go to properties, you can change which form starts up first by changing the Startup object under General.
Quote:
Last thing (I hope.). If i wanted to add a background image to the form, would i go under properties, and backgroundimage, then specify the file for the image? (Please tell me there's another way, because doing it like this creates a TON of lag...)
Yes, you could use GDI+ and a TextureBrush to draw a background instead of setting the form's BackgroundImage.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #24  
Old 01-09-2005, 08:55 AM
ThePentiumGuy ThePentiumGuy is offline
Regular
 
Join Date: May 2003
Posts: 53
Default

Yeah man you should really use GDI+ instead of pboxes. But that's up to you.

Iceplug, about ArrayLists vs Collections:

I'll run a little performance app testing thing for ArrayLists vs Collections and let you know. ArrayLists have more methods? Now that's something I'll ahve to look into. For "More methods" (than Collections), I'd just use a Collection.HashTable. In terms of features, I dont know the difference between Hashtables and ArrayLists. I'll check it out.

-TPG
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
Game Help pls
Game Help pls
Game Help pls Game Help pls
Game Help pls
Game Help pls
Game Help pls Game Help pls Game Help pls Game Help pls Game Help pls Game Help pls Game Help pls
Game Help pls
Game Help pls
 
Game Help pls
Game Help pls
 
-->