00:00
00:00
Newgrounds Background Image Theme

Nue22 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Simpel car engine.

901 Views | 9 Replies
New Topic Respond to this Topic

Simpel car engine. 2007-10-07 16:29:31


Well I suddenly felt like doing some ting nice. So I decided to post this
free car engine.

The controls are:
Arrow keys to move the car
Space to use nitro.

Please post about tings that can be improved.


if you lol'd at this post, click here !

Response to Simpel car engine. 2007-10-07 16:47:00


At 10/7/07 04:29 PM, mathiasnat wrote:
Please post about tings that can be improved.

How about when you press down the car goes into reverse.


Flash is happy and it knows it.

BBS Signature

Response to Simpel car engine. 2007-10-07 16:52:28


Stolen. You just threw in a v-cam
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_rotation += 4;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 4;
}
}
onClipEvent (load) {
//When the movie clip first loads
Speed = 0;
Speedd = 0;
//Set speed variable to be zero.
}
onClipEvent (enterFrame) {
//At every frame,
Speed *= .9;
/*Decrease the speed.
(Keep making it 90% of what it currently is)*/
if (Key.isDown(Key.UP)) {
//When you press UP,
Speed++;
Speed++;
Speed++;
Speed++;
Speed++;
//Add more speed.
}
if (Key.isDown(Key.RIGHT)) {
//When you press RIGHT,
_rotation += 4;
//Rotate RIGHT
}
if (Key.isDown(Key.LEFT)) {
//When you press LEFT,
_rotation -= 4;
//Rotate LEFT
}

Angle = _rotation*(Math.PI/180);
//Degree of rotation in radians.
_x += Math.sin(Angle)*Speed;
//Explained later.
_y -= Math.cos(Angle)*Speed;
}
I bet a hhalf hour of scouring as:main will find it.


=3

Response to Simpel car engine. 2007-10-07 16:52:28


How about when you press down the car goes into reverse.

Yea, I thought about it.


if you lol'd at this post, click here !

Response to Simpel car engine. 2007-10-07 16:54:07


At 10/7/07 04:52 PM, mathiasnat wrote:
How about when you press down the car goes into reverse.
Yea, I thought about it.

Explain this block.
Angle = _rotation*(Math.PI/180);
_x += Math.sin(Angle)*Speed;
_y -= Math.cos(Angle)*Speed;
}

I bet you dont even know what math.sin math.cos does.


=3

Response to Simpel car engine. 2007-10-07 16:54:54


At 10/7/07 04:52 PM, sandypaw wrote: Stolen. You just threw in a v-cam
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_rotation += 4;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 4;

:...
Well, I didn't say I made this!
I think I fond it at flashkit or something.


if you lol'd at this post, click here !

Response to Simpel car engine. 2007-10-07 16:58:24


Its not on AS: Main. Only car one on there is my one. Which is pretty much stolen from a tutorial, yes - i was a fool back then.

But i have just been working on a script for a car for my game. Much better than yours. To start your car rotates when its static. Even thought it probably isn't yours. Stolen most likely because of the comments.

Response to Simpel car engine. 2007-10-07 16:59:26


At 10/7/07 04:54 PM, mathiasnat wrote:
At 10/7/07 04:52 PM, sandypaw wrote: Stolen. You just threw in a v-cam
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_rotation += 4;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 4;
...
Well, I didn't say I made this!
I think I fond it at flashkit or something.

You just made my hall of fame. You didnt link to the ut. you didnt explain it. you didnt understand it you didnt EVEN remove the comments/change them.

At 10/7/07 04:29 PM, mathiasnat wrote: Well I suddenly felt like doing some ting nice. So I decided to post this
free car engine.

Wow. thanks why not just link us to the tutorial, because all you did was download the .fla

The controls are:
Arrow keys to move the car
Space to use nitro.

OMGF!!!!1aco11!! You figured out the controlzes!!11!!!1 Heresz400$sponzershipp $500 extraz


Please post about tings that can be improved.

One word. Originality.


=3

Response to Simpel car engine. 2007-10-07 17:48:10


At 10/7/07 04:59 PM, sandypaw wrote:
At 10/7/07 04:54 PM, mathiasnat wrote:
At 10/7/07 04:52 PM, sandypaw wrote: Stolen. You just threw in a v-cam
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_rotation += 4;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 4;
...
Well, I didn't say I made this!
I think I fond it at flashkit or something.
You just made my hall of fame. You didnt link to the ut. you didnt explain it. you didnt understand it you didnt EVEN remove the comments/change them.

Hell, it's not like he's trying to take credit for someones work other then his own. Maybe he's just trying to spread the engine around because he thought it was useful. No use bitching at him when he probably doesn't even know what he did wrong.

Response to Simpel car engine. 2007-10-07 17:52:18


At 10/7/07 05:48 PM, Skeik-Sprite wrote:
At 10/7/07 04:59 PM, sandypaw wrote:
At 10/7/07 04:54 PM, mathiasnat wrote:
At 10/7/07 04:52 PM, sandypaw wrote: Stolen. You just threw in a v-cam
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_rotation += 4;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 4;
...
Well, I didn't say I made this!
I think I fond it at flashkit or something.
You just made my hall of fame. You didnt link to the ut. you didnt explain it. you didnt understand it you didnt EVEN remove the comments/change them.
Hell, it's not like he's trying to take credit for someones work other then his own. Maybe he's just trying to spread the engine around because he thought it was useful. No use bitching at him when he probably doesn't even know what he did wrong.

He is trying to claim it for his own. Look at 'his' RPG tutorial. He clearly didn't understand it. I'm pretty damnn sure by the way he's acting he probably took it TOO from flash kit.


=3