PDA

View Full Version : Drag Race Game



drawven
January 18th, 2004, 04:31 PM
yes I'm starting a drag racing game and you could say my actionscripting is basic and almost just almost intermediate well you could say its intermediat and i was hoping for some ideas. The game is going to be from the side view here's one of the cars
<embed src=http://earth.prohosting.com/drawven/seleen.swf><embed>
I searched for some pics on google and me, my friend, and my bro traced them in flash. so far i have 9 cars. Any suggestions

Reginald
January 18th, 2004, 04:34 PM
maybe tune up your car, buy parts etc

drawven
January 18th, 2004, 04:57 PM
yeah i know but what am saying is i need help on starting this like where should i begin

Marz
January 18th, 2004, 10:22 PM
First... Don't do it side view... It won't look correctly.. And it'll end up not being cool.

Do it in top perspective and use the graphics for the GTA games... :)

And I can help you out with the AS if needed.

drawven
January 18th, 2004, 11:20 PM
ok! i won't do side view am going to do it top view but you won't hear from me in a while cause am gonna have to look for some exotic sports cars from the top view so i can trace em because i can't draw for ****. am still gonna keep the the old cars and make a seperate game. thx for the suggestion. and if its top view i think the only AS help i'll need is maybe the scrollling and the finish line.

GreenLantern
January 19th, 2004, 02:43 AM
Sounds like a good idea. What other ideas will be implimented in this game?

APDesign
January 19th, 2004, 12:58 PM
It's a good idea to do most of the coding with "Filler" graphics (ie: boxes) and then up the graphics if you ever actually finish the game. or at least thats what I find to be the best way...

drawven
January 19th, 2004, 06:43 PM
ur right. but i just got finished wif 4 cars last night i just need like 6 more am just gonna finish them and get them out the way

GreenLantern
January 19th, 2004, 10:15 PM
That's hot. I want to see this as it progresses. Can you post it somewhere?

junahu
January 20th, 2004, 08:23 AM
If you need a finish line then you'll probably also need to check for key points on the track so the player won't just cross the line then turn around and cross it again.

And how about a track editor? That'd be cool.

APDesign
January 20th, 2004, 01:58 PM
Ohhhhhhhhh! A track editor would ROCK! Someone made a really cool game where you have to collect diamonds or something, it was isometric and there were like 3 levels of depth you had to jump around on and they had a level editor.. it was so cool. I really want to try and do something like that now (with a level editor) that can actually be saved to the server for others to play.

drawven
January 22nd, 2004, 07:38 AM
yeah a track editor would be cool if you would like to volunteer to make it be my guess but so far i've only found 4 cars from the top view i can't find anymore

APDesign
January 22nd, 2004, 10:48 AM
Originally posted by APDesign
It's a good idea to do most of the coding with "Filler" graphics (ie: boxes) and then up the graphics if you ever actually finish the game. or at least thats what I find to be the best way...

Mwhahahaha ;)

Marz
January 22nd, 2004, 06:52 PM
Originally posted by APDesign
It's a good idea to do most of the coding with "Filler" graphics (ie: boxes) and then up the graphics if you ever actually finish the game. or at least thats what I find to be the best way...

It's not a horrible idea but I wouldn't suggest it.. Only for finishing of the game engine.

You test what you know your engine is going to be handling.. Putting boxes in will be the bare minimum.. when creating gaes, you should be thinking about the maximum.. ;)

GreenLantern
January 23rd, 2004, 03:21 AM
so all this talk, and I have yet to see anything more than a car.

How is it going?

drawven
January 29th, 2004, 11:24 AM
Increasing Speed

i want to increase the speed of the car as u hold down the up key
and space key would be a boost and shift key would be a stop

Marz
January 29th, 2004, 04:50 PM
Do the normal Keytesting to see if the UP arrow is down... Or is pressed... Except you would have two if's for each key...

This is pseudo code... Not real code.. Mock the real code after this..



if(Key is Down (Up Arrow))
{
carIsMoving = TRUE;
}
if(Key is Up (Up Arrow))
{
carIsMoving = FALSE;
}

// Somewhere down in the statements where it loops around

if(carIsMoving == "TRUE")
{
if(acccelerate < 5)
{
accelerate += .02;
}
else
{
accelerate = 5;
}
}
else
{
if(accelerate > 0)
{
accelerate -= .02;
}
else
{
accelerate = 0;
}
}

// To get each of the x and y accelerates you have to judge
// the actual rotations of the car to cosine and sine tables.
// If I get some time I'll show you how to do that..
// Hopefully someone else on the boards can show you
// until I could possibly show you.

_root.car._x += xaccelerate;
_root.car._y += yaccelerate;

drawven
January 30th, 2004, 07:28 PM
thx very much man.(people in this forum are so friendly) yeah anyways here is the sample<br><embed src="http://earth.prohosting.com/drawven/speed.swf" ></embed><br> <br>
press the foward key to go and u'll see the ball speed increase now let the key go to see the speed decrease.(down't worry about stopping at the edge the movie loops)
oh one more thing here's the code


onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
carIsMoving = true;
}
}
onClipEvent (keyUp) {
Key.RIGHT;
carIsMoving = false;
}
onClipEvent (enterFrame) {
if (carIsMoving == true) {
if (acccelerate<5) {
accelerate += 1;
} else {
accelerate = 0;
}
} else {
if (accelerate>0) {
accelerate -= 1;
} else {
accelerate = 0;
}
}
_root.car._x += accelerate;
}