scripting for 2d platformer help specific info

hi all i’m new here to the forums, here to try get help, starting to get the hang of Unity like I have sort of built a run-through level but came across a few problems

sorry if this is blunt but does anyone know about respawning a player/dieing because I’m currently spawning a fps view since I couldn’t get a 3rd person view to be edited to forced side view ps any tips on that would also be helpful

also I like to know more jump pads since I would like to get the player to bounce as if the person was jumping on a pad that pushes upwards

one more thing before i disappear for a bit i was wondering if theres a way to make obstacles that drop down respawn where they was every 5+ seconds because I’m trying to create obstacles for the player to try get past

anyway thanks for any help in advance, this would be very helpful since using this information to help build my prototype game

Welcome to the forums ronnie!

Have you gone through the 2d platformer tutorial?

thanks for that but already aware of that but since trying to avoid pre-used stuff i can’t use the one it gives in the level

also it seems the tutorial doesn’t seem to mention much while there is mention of a death zone added there doesn’t seem to be a explanation of how to get it or combine with personal project plus the respawning of falling objects isn’t mentioned either

last time i tried dragging scripts from other projects it normall ended badly also the platform bit doesn’t help much since it only moves when the player is touching it which isn’t what I wanted

also the closest thing to a jump pad is the jet pack but that would ruin the type of game design I am making since all I want to do is make the player jump high

You have to look through the scripts as well as the PDF.

It includes a 2d platformer camera and the death zone you mentioned, but in general the tutorials are meant to teach techniques, not be a drag and drop resource for your own projects. Once you understand the script behind the camera or the death zone, it’s then relatively simple to recreate in your own project.

As far as a Jump Pad, there’s one in the 3rd person platformer tutorial you could look at.

well which 3rd tutorial?
as for deathzones closest I can find is this

http://answers.unity3d.com/questions/7741/death-zone-scripts
which to me doesn’t make a lot of sense but reopening different projects can be annoying

Look at the top of this webpage and click on ‘resources.’ There is a 3rd person platformer tutorial which contains the jump pad, as well as a slew of other example projects and tutorials.

In terms of a ‘death zone’ it’s nothing esoteric. It’s a collider marked as a ‘trigger’ that does something when a rigidbody, kinematic or otherwise enters it. Usually, a huge box collider below your game level.

A trigger fires off code, but doesn’t return any detailed collision information so they’re cpu cycle friendly. The code that fires when your player enters it, simply kills/respawns or does whatever you wish to your player.

http://unity3d.com/support/documentation/ScriptReference/Collider.OnTriggerEnter.html