-
Hi im making a gta 2 game based on mbenny's source code
the problem is im not sure how to make the map.
i had posted this question somewhere on this board but i felt this question was worth a separate post.
here's what ive done till now
the code im using is commented for the time being
If anyone could take a look at the source nd help me out i'd appreciate it.
http://202.88.143.206:8080/games/car.fla
Rahul
-
Arrays...
..can't open your file - I guess it's MX?
This isn't a precise answer, it's just theory - hope it helps.....
Anyway - I assume you've built your gameworld map using arrays? :
map = [[1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 1],
[1, 0, 0, 0, 0, 1],
[1, 0, 0, 0, 0, 1],
[1, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1]];
You use this array to decide what is drawn on screen at any one time, e.g.:
localMap = [[1, 1, 1],
[1, 0, 0],
[1, 0, 0]];
..so simply, 1's represent a wall, 0's represent road. This localMap array tracks what main gameworld tile graphic is to be drawn.
Your minimap would work exactly the same as your localMap, but the array size would be larger( maybe the whole gameworld map array ). This mini-map array would just have a different drawing function to that of the main gameworld tile graphics.
-
Ok i solved the MInimap problem by meself
It was so Simple
here's the url neways for someone who may wanna do this
http://202.88.143.206:8080/games/car.fla
Rahul
-
I like your game a lot, specially the map... But I'm not a big fan of the collision detection, why does your car go in reverse when you hit something? Its a little odd. I would just make it bump back a little; not go in reverse for a couple seconds.
-
Lunatic
Seems there is something wrong with the script of the car. Sometimes my car drives backwards when I want it to drive foreward. ????
-
hi,
thats not my code
i got the source from mbenny and modified it
IM tryin to solve the problems.
Rahul
-
i could not download the file 404 error
-
Senior Member
hello, glad someones making use of my files
the detection isnt great, its an early F5 experiment, using four collision points, the front two bumping the car backwards and the front two bumping forward. its pretty poo really!
maybe one day ill do a revised version....
-
Nice Job Benny U Should Finish The GTA Game.
-
hi rahul696
I can't get ur FLA. it s broken link. could u pls fix it?
thanks
or pls send me
ozgur@dreamsandbytes.com
-
Senior Member
This is how far i got on the whole 'GTA Thing' ... Lots of people have tried it. My problem was speed in the end, flash just isnt made for it,
http://www.moor47.fsnet.co.uk/gta
I made peds aswell, but they slowed it down more and had a habbit of walking across the road
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
|