PDA

View Full Version : BMX Experiment


Nexus
11-26-2004, 10:00 PM
There was a topic the other day where someone wanted to recreate this game... http://www.teagames.com/bmx.php

Seeing this, I was amazed at the fact that this kind of game was actually possible with flash, so I put on my "thinking cap" and tried to recreate it myself (the collision part anyway).

This is the result...(left and right arrows allow you to "roll").
http://xsdsx.250free.com/temp/BMXTest.html

In my eyes, this was an almost complete failure. I didn't really have any idea what I was doing, but I tried anyway.

The source code can be downloaded for those who want to see how this works anyway. I scrapped this together pretty quick, so it's not the prettiest of things.
http://xsdsx.250free.com/temp/BMXTest.fla

I am now asking, does anyway know or remember any tutorial that had a topic remotely like this? I dont' care if you understand it, or you think that I can, just give me the site and I'll check it out. I really do appreciate any help with this.

Meanwhile, I'll be doing some hunting of my own.

Bodadem
11-27-2004, 04:20 PM
Awsomely nice. I would never be able to get anywhere near that without using tons of little MC's for collision detection, and i still wouldn't be able to get it to fly off cliffs and stuff...

Leperkawn
11-27-2004, 09:44 PM
Good start. Keep workin' at it.

MercuryLime
11-27-2004, 10:17 PM
...Total failure? I can't even get close to any sort of physics system.

The Brown Cow
11-27-2004, 10:48 PM
I would store the lines in memory (as y-intercepts and slopes) and use circle-to-line collision detection myself.

But that only allows for straight lines. I have no idea how to do curved ones...

arkhan
11-28-2004, 08:16 AM
well..if you think about it..a curved line can be 1000´s of straight lines...

Nexus
11-28-2004, 09:21 AM
That's quite true, arkhan. Since the definition of a circle is after all a polygon with an infinite number of sides. :o

DarkReality
11-28-2004, 11:27 AM
However, storing an infinite amount of lines in memory can prove to be rather... hard. :-p

The Brown Cow
11-28-2004, 12:20 PM
A little processor intensive to loop through them all every frame too.