Side Scroller
Side Scroller
Side Scroller
Side Scroller
Side Scroller
Side Scroller Side Scroller Side Scroller Side Scroller Side Scroller Side Scroller Side Scroller Side Scroller
Side Scroller Side Scroller
Side Scroller
Go Back  Xtreme Visual Basic Talk > > > Side Scroller


Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2011, 08:36 PM
Kirby999 Kirby999 is offline
Newcomer
 
Join Date: Mar 2011
Posts: 3
Question Side Scroller


well first I am new to the forums so please don't be hard, second im fairly new to vb6, I just started in September, and well i got a good idea of the program. so now to my game:

I'm making a 2d side-scroller, it is just vb6, im using the tile system thingy, and the map editor and everything. i got the sprite animating and moving. well here comes my first problem when he gets to the edge of the map i can't figure out how to get it to scroll... i would think it would be this..

If KeyCode = 39 And a > 745 Then looka = looka + 1: Call drawscreen

a is the x coordinate and 745 is the width of the picture box, looka is the view. drawscreen is self explanatory. well it doesn't work.... it only works when its..

If KeyCode = 39 And a < 745 Then looka = looka + 1: Call drawscreen

but then when i press the right arrow it just keeps scrolling and not following the player.

please help, this one dilemma is holding me back...
Reply With Quote
  #2  
Old 03-19-2011, 12:28 PM
Kirby999 Kirby999 is offline
Newcomer
 
Join Date: Mar 2011
Posts: 3
Default

nevermind i figured it out
it wasnt that complicated actualy ...
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
Side Scroller
Side Scroller
Side Scroller Side Scroller
Side Scroller
Side Scroller
Side Scroller Side Scroller Side Scroller Side Scroller Side Scroller Side Scroller Side Scroller
Side Scroller
Side Scroller
 
Side Scroller
Side Scroller
 
-->