PDA

View Full Version : Top-down Racer Tutorial



AssassinatorRFC
02-01-2011, 10:42 PM
Hello all!

This is a nice little video from my channel showing how I would do a top down racer :D enjoy


http://www.youtube.com/watch?v=p8ZA50pe2Nw

Some of the features I have done are quite advanced but could still be simplified for easier creation :blush:
So I hope that helped and I am open for comments and other Tutorial suggestions!


If you need a little more in depth look then click here --------> here (http://www.lbpcentral.com/forums/showthread.php?47058-How-to-Make-a-Race&p=758725#post758725)

wolverine_2008
02-02-2011, 12:05 AM
but.........but..........it's not there D:

I Give Up75
02-02-2011, 12:25 AM
Would your logic for the laps still work if one player was a full lap ahead of another player?

Antikris
02-02-2011, 10:19 AM
With just one checkpoint to pass, it is fairly easy to cheat laps by moving back and forth over the finishing line. This is intended to be a basic tutorial, and in that it aces! But if you want to make it more sturdy, then multiple checkpoints along the track is one solution. There was a nice topic in the Help forum (http://www.lbpcentral.com/forums/showthread.php?47058-How-to-Make-a-Race) going on about this.

AssassinatorRFC
02-02-2011, 11:01 AM
@ wolverine_2008- What do you mean O.o whats not thar?

@IGIVEUP75- Yes even though this is a basic tutorial it can handle betwen 1-4 players with ease :D the counters are reset by the first tag before the finish/start line so the score givers will be reset allowing it to count each individual player that passes the gate.

@Antikris- O.O You again!! Hai :D thanks for your comment and I must emphasise that this course was pretty poor and hopefully the people that want to make their own from this tutorial will not make it as bad as me :blush: But yeah that help forum looks good so i may include the link in this thread :D

Thanks for your comments!

siberian_ninja15
02-02-2011, 11:33 AM
This may sound silly but I mostly had trouble with making the track lol. Every racing level except one extremly detailed one in Mm picks would only show you and the car, never letting you see the whole map of the track. This video gave me a general idea now. Make it simple and add landscape after the track has it's shape. I get it now. Also, the car tutorial was helpful.

If you know how to make booster or zippy pads that make you go fast, it would be awesome if you either made a video about it or whatever you like. :)

AssassinatorRFC
02-02-2011, 11:50 AM
@siberian_ninja15- Ok :D I'll go have a look if i can! :D and I'll make a powerup if I can :p

Keep a lookout for part 2 then :blush:

wilkesy88
02-02-2011, 12:25 PM
What were the gravity settings? I don't think I saw it.. :(

Antikris
02-02-2011, 12:38 PM
I'll be curious about NPC A.I. in a racing level. Of course, your fellow players are your main competition in a Versus level, but adding hostile NPC's for good measure is always fun. What would be basis, you think? A recorded behavior of following an entire track, swirl back and forth a bit here and there and abruptly switch to other patterns when a player is near?

By the way, tip: control a sackboth, have it mount an inactive DCS, then dismount your own DCS and capture the bot in his DCS for future use. You can then stick that DCS'ed bot on top of your car and modify as you see fit. If it has a receiving DCS, you can set it to adopt the costume of the player who controls the car by giving it the same frequency color. Also, stick a behavior to its circuit and have it record: the bot will actually control the car now and you have your basis for unique car A.I.

AssassinatorRFC
02-02-2011, 01:02 PM
@wilkesy88- For this car I had the gravity on:

Anti grav:100
Dampening:30
zero boyency: 0

@Antikris- yeah I recall someone doing something like that in the beta! I cant remember the level or creator at this time but i am sure there will be a video on Youtube :D

Sehven
02-02-2011, 01:17 PM
I'll be curious about NPC A.I. .... What would be basis, you think? A recorded behavior of following an entire track, swirl back and forth a bit here and there and abruptly switch to other patterns when a player is near?

I definitely wouldn't use a recorded behavior for a racer A.I. It would be thrown off by the littlest thing and then you'd have an enemy racer stuck in a corner somewhere trying furiously to drive through the wall. What I would do is set up a "racing line" of tags that tell the A.I. driver when to turn, and how hard to turn etc, and if he drifts off the racing line, he should detect it and attempt to compensate. Of course, I haven't actually tried doing this yet, so I have no idea how difficult it will be, but that's how I plan to try it when I get around to making A.I.

AssassinatorRFC
02-02-2011, 02:09 PM
Yeah what sehven said! that sounds like a good idea on how to do it :D I may try it myself if i get enough time in my busy schedule:

00:00-23:59- play some lbp2

:p

ghostrider135
02-02-2011, 02:47 PM
Awesome vid man :), But it still looks more baffling to me I just cannot get my head around the logic lol

AssassinatorRFC
02-02-2011, 02:54 PM
@Ghostride135- Well I have tried to simplify it slightly from what i would do but all you need to know is that:

-the counters count the players that cross the line
-the car logic is easy to do if you set it up like in the video
-mudkips liek you :p

if you are still a little confused give this thread (http://www.lbpcentral.com/forums/showthread.php?47058-How-to-Make-a-Race) a read ! :D

mr_b_ram
02-03-2011, 03:07 AM
Hello all!

This is a nice little video from my channel showing how I would do a top down racer :D enjoy


http://www.youtube.com/watch?v=p8ZA50pe2Nw

Some of the features I have done are quite advanced but could still be simplified for easier creation :blush:
So I hope that helped and I am open for comments and other Tutorial suggestions!


If you need a little more in depth look then click here --------> here (http://www.lbpcentral.com/forums/showthread.php?47058-How-to-Make-a-Race&p=758725#post758725)

good tutorial fellow sac

CloaknBlagger
02-03-2011, 02:21 PM
Great tutorial, and I was wondering if this would work to build in a boost pad??, it's only a guess right now but seems 'logical' enough assuming that the value of the more powerful battery is used over the medium powered one when activated by a tag on the track somewhere, look at my diagram below: (again it's only a very wild guess, I am not at home to test)

sellfcon
02-12-2011, 03:35 AM
What I would do is set up a "racing line" of tags that tell the A.I. driver when to turn, and how hard to turn etc, and if he drifts off the racing line, he should detect it and attempt to compensate. Of course, I haven't actually tried doing this yet, so I have no idea how difficult it will be, but that's how I plan to try it when I get around to making A.I.

i'm working with this Tag method right now. it works, but the NPC's can still be thrown off line, resulting in the vehicle's getting stuck in corners.
also, lining-up the Tags is tricky . they can make the NPC zig-zag like a drunk driver, with no obvious cause

Distinct-Creator
02-12-2011, 05:14 AM
D: i cant make a normal looking car to go with logic lol, make a tutorial on that :D

AssassinatorRFC
02-12-2011, 11:12 AM
@cloakndagger- yes that could work well by the looks of it. I worked out this method: tag + 1/1 counter (A) (reset by B) > and > 1/1 counter (reset by B) + X button = reset (B) + timer 5secs > invert 1/1 counter (reset by A)

@sellfcon- that is what I found too. You may need to make them holographic so that they cant be nudged by players. Also you might want to make the tag sensor radius 50degrees-ish and just enough to see the tag in front.

@Distinct-creator- I personally think my subs cannot put up with anymore racing tutorials so I will give you some tips here:
- You can make a second thin layer which is so helpful for making compact cars. You can also pick this up in some community levels. I find that a 1-FAT car looks very bad unless it has a roof.

-You could make a base like i did here and use decorations to make a unique smooth shape which looks somewhat "alien" to LBP which will make the players be like :boo:

-do some research and search for some cool top down car shapes and just get inspired! :D

Hope that helps you all!!

AdenRalumdan
03-01-2011, 03:46 AM
Hey, thanks for the tutorial! Thanks to this, I can make my chocobo race =D