|
-
Apr 16th, 2005, 02:52 PM
#1
Thread Starter
Member
RTS-like scrolling screen
I'm planning on making a simple (very) RTS-like game, and atm I'm stumped on displaying a scrollable screen, such as one in any RTS game, where not the whole "world" is displayed at the same time, just a smallish area of it.
My thoughts would be that everything is done before being rendered (normal i think), and each unit in my RTS game (prob based on a real simple 2D grid) would be given world co-ords, not screen co-ords, and when the game renders, it...
and here i am stuck :S i guess you need some conversations from world co-ords to screen co-ords, and the position of the users screen in the world - which work together sort of... basicly, i don't know where to start! so any help is welcome! and i would prefer the screen to "move" when the cursor nears the edge of the map, although i think i know how to do this.
and one small question, from another thread which was never answered about vbScript:
i've added some scripting support to my basic game, and so far have this:
With frmMain.SC
.Reset
.AddObject "Game", Game
.AddObject "User", User
.AddCode LoadedItem(Item(ID).intLoadedItemOrigin).strEffect
.Run "Effect"
End With
This works fine, and I am able to "use" all public members in both of these arrays. But I would like to add another class object that is an array, how can you do this? or is this even possible?
i mean something like this : .addobject "Item", Item(), althoughthis doesn't work
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|