|
-
Mar 29th, 2001, 03:29 AM
#1
Thread Starter
New Member
hello...people
Right now i'm writing a simple strategy game about mech. but i'm having a problem for environtment detecting. I want to make the mech I'm controlling be able to be aware of the object around it wether it's a tree, a wall, or an enemy mech. I don't have the slightest idea for the syntax nor the algorithm for it, anybody can help me with this problem ??
PS : do you know the syntax in VB6 wich stands for the syntax GET in QBasic ??
-
Mar 29th, 2001, 01:48 PM
#2
If the game universe is not 3 dimesional (no flying or
jumping), i would use a simple 2D array and fill it with
vamues that say "i'm a tree", or "i'm a bad guy".
Another point. Dont use the term "Mech". That word is
owned by FASA (Microsoft, now?). Use "Mecha", or
"Giant Robot Thing".
Z.
-
Mar 29th, 2001, 03:46 PM
#3
Good Ol' Platypus
They can't own a word! Mech is simply a short form for mechanized. Ah well, if they want to file a lawsuit against us then use mechanized infantry in a short form for your game title or something:
--M.I.W--
Mechanized Infantry Wars
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Mar 29th, 2001, 07:33 PM
#4
When your character moves to a new spot on the map, you could check the item beside you by checking the byte that follows yours or is behind your in your byte array.
Code:
Const OBJECT_TREE = &H2
If Map(Mychar.X - 1, Mychar.Y) = OBJECT_TREE Then MsgBox "There is a Tree beside you"
-
Mar 30th, 2001, 09:29 AM
#5
No, really. FASA (Microsoft?) owns the words BattleMech, and Mech, and any other words that relate to BattleTech (and Im pretty sure theyd sue, if you tried to make money =).
Z.
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
|