[360] Jolan's Tracks & Tutorials
Hey y'alls!
I'ma post all my cool stuffs in this tread!
Everything will have a video or at least an image. I'll also include an explanation on the thought process, as well as the code I used.
EVO, Origin of Pain
Let's kick things off with a Rant track - "K-KAW! K-KAW MF!!!" is a Trials track I threw together after seeing another one of those 'running' tracks. You know the kind, where the bike is invisible and that's ALL THERE IS? Well, the camera was moved behind but come on, not even checkpoints.. Maybe there were, I'm not going back to it :nonchalance:.
So this one I got a bit carried away, both in the time I put in, and the features. His arms are attached to the right leg so that he looks like he's trying to really fly, and birds are added for feathers or to help him obtain lift, which he does. If you press Y to bail, he can still move but his arms are stuck outward, so I changed the flapping noise to holy music :D.
The name is a quote from the internet which a friend loves to say. It seems to be a reference to the Marvel hero 'Hawkeye' and how cool and under-appreciated he is.
The quote goes, KAW KAW Motherf... but we've gotten to saying it differently. It is now what my brain says everytime I see a clip of some goofball jumping off his roof into a pool, and whatnot. It's like the new Gay Tony:rolleyes:.
Now some info on the code.
- Both wrists are Jointed (point-point) to his right calf (lower leg), and the handlebars are detached (so he lets go of the bike). The rider is then made invincible because when parts of the bike start falling off, the game doesn't like that and often fails him randomly.
. - When A/RT is held down, many things happen. An Afterburner is activated and his gravity is set from a negative to a positive. This is needed because the bike's Linear Dampening is set to 99% to deter it from rolling while he is not pedaling (standing still). It will still move while idle but no biggie on a Rant track. This dampening restricts the up/down movement as well so without the gravity change, he doesn't lift off.
. - The birds or firefly effects, and flapping or choir sounds are chosen using the Player Condition Filter.
While A/RT is held down, and the rider is Riding the bike:
= TRUE : Play sound 'Audience, Rhythmic Clap', and trigger Effect 'Birds from Tree'.
= FALSE: Play sound 'Angelic Choir', and trigger Effect 'Fire Flies'.
These are timed properly using Impulse Clamp Filters
. - Distance is determined by measuring the distance between the rider and a Dummy Object, then repositioning the Dummy. A Generic Filter first determines if the Dummy Object is Equal to or Greater than 1 meter away. If TRUE, 1 is added to the score and the Dummy is reposition to the rider, via an Object Position Event.
. - With all these cool goings-ons, you can't be expected to keep the bike straight too! Everything is held upright using a simple Joint (Slider, 3-axis). The front/back (X), left/right (Z) and down (-Y) limits are set to infinite, and a height limit (+Y) keeps you in the play area.
. - The ending uses both the Finish Checkpoint and an Area Trigger, in case the rider has bailed along the way.
And now, the screenshots:
http://i61.tinypic.com/30kucsj.jpg
http://i61.tinypic.com/2vxgnk1.jpg