Need some help with a game
Need some help with a game
Need some help with a game
Need some help with a game
Need some help with a game
Need some help with a game Need some help with a game Need some help with a game Need some help with a game Need some help with a game Need some help with a game Need some help with a game Need some help with a game
Need some help with a game Need some help with a game
Need some help with a game
Go Back  Xtreme Visual Basic Talk > > > Need some help with a game


Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2012, 05:53 PM
minsky minsky is offline
Newcomer
 
Join Date: Feb 2012
Posts: 1
Default Need some help with a game


Hey, I'm making a game in which you control a character with the right and left arrow keys, you reach the location of a door, click it and proceed to the next level.

The way I'm doing it is: the character is a button with an image, that moves when the right and left arrow keys are pressed. when the character reaches the location of a door(also a button) and clicks it, he proceeds to the next level. The character's location is reset to the initial, the image of the picturebox that is the background switches, and some buttons with images appear, and others disappear.

I know I'm "cheating" in every possible way, but I just wanna make somthing simple for a school project.

The problem is, since I'm doing everything in the same form, it's getting completely clogged up with buttons and I've only made 4 levels so far, and I can only see the initial image, so I need to predict the location of some items so that they will fit in the background of a certain level when I tell them to become visible.

So, I need you to tell me if there is a better approach for this. I've tried new forms for every level, but I think it's worse because I have to transport variables, and the timers that make the character move don't work in other forms.

So, any ideas?

thanks in advance
Reply With Quote
  #2  
Old 02-02-2012, 02:51 PM
passel's Avatar
passelNeed some help with a game passel is offline
Sinecure Expert

Super Moderator
* Guru *
 
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,026
Default

I guess if you want to continue down a "bad" road, then just put all the controls for a given level in a panel. You can make the panel visible or not to show or hide all the controls for the level at once. You can position all the panels off to one side in the IDE so you don't see them. In the property list, change the Left property to 0 of one panel to work with the controls in that panel. Set it back to some other number to get it out of the way when you want to work on another level.
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
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
Need some help with a game
Need some help with a game
Need some help with a game Need some help with a game
Need some help with a game
Need some help with a game
Need some help with a game Need some help with a game Need some help with a game Need some help with a game Need some help with a game Need some help with a game Need some help with a game
Need some help with a game
Need some help with a game
 
Need some help with a game
Need some help with a game
 
-->