How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ?
How To Refresh A Game ? How To Refresh A Game ?
How To Refresh A Game ?
Go Back  Xtreme Visual Basic Talk > > > How To Refresh A Game ?


Reply
 
Thread Tools Display Modes
  #1  
Old 12-26-2009, 12:36 PM
soccerkid1122 soccerkid1122 is offline
Newcomer
 
Join Date: Dec 2009
Posts: 6
Question How To Refresh A Game ?


I've made a game where you hav to dodge the pictureboxes(asteroids) and try to survive as long as u can. After you are hit the program asks for your name and post your information on a highscore listbox.

My problem is when i play the game and then return to the main form and try playin the game again the picturboxes are in the same position at the time when they first stoped after they came in contact with the spaceship(picturebox) that the user controls. Also the asteroids arent moving as well

frm(wutever).Refresh does not work :S

if you got anything that might come in handy please let me know

Thanks In Advance
Reply With Quote
  #2  
Old 12-26-2009, 12:46 PM
Iceplug's Avatar
IceplugHow To Refresh A Game ? Iceplug is offline
MetaCenturion

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

You have the option of unloading the form and showing a new instance of it from the main form... that's the cop-out easy way.

Although, you will have to confront issues like that when you move on to BitBlt or higher and have to reset all variables required for your game on your own... you could store default conditions in a subroutine such as picturebox locations and timer .Enabled = True calls.
__________________

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
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
How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ? How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ? How To Refresh A Game ?
How To Refresh A Game ?
How To Refresh A Game ?
 
How To Refresh A Game ?
How To Refresh A Game ?
 
-->