Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by C10110 · Apr 03, 2014 at 02:11 AM · 2dspawningcheckpoint

Checkpoint Question

Hello,

First I feel I should state I am not asking for scripts, I am just confused about how to go about implementing checkpoints in a game I'm already working on.

In short I have a 2D platform game I'm making with my friend (he's doing the artwork) in where it's a Mario parody. Basically the concept is simple (and most likely been done before) but when you get 100 coins instead of getting a life you die. We wanted to make a really hard platformer, my friend is passionate about that style so I told him since he draws well I'd help him make a game as such. Anyway...

I have most of the gameplay done for the most part with place holder graphics, what's throwing me off is setting up a checkpoint system. See if it was a game where you fell to your death I would know exactly what to do. But as it is now the game is set to spawn you at the beginning when you die by the death of 100 coins.

I'm thinking all I have to do is make a spawning script, and then where my code states to spawn to the beginning I call upon the spawning script.

The reason I'm making a Unity Answers thread is I'm still pretty new to programming. And most everything I do is off of a tutorial or example project. So it really helps when someone explains what to do. Again, I don't expect or need you to give me the finished scripts or anything. But if someone could just talk to me about what a good way to go about this would be I'd be very grateful.

Thank you for your time!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image iwaldrop · Apr 03, 2014 at 03:10 AM 0
Share

Yeah. Just make it so that each checkpoint has a trigger collider that updates a variable somewhere that informs the spawning system which spawn point to use. Any time you want to spawn the player then you just tell spawning system to spawn the player at either the beginning of a level or at the checkpoint.

What you need is three things: a Checkpoint, a Spawner, and a SpawnPoint.

avatar image C10110 · Apr 03, 2014 at 01:28 PM 0
Share

Okay! That makes sense! Thank you so much for the response! I think I can do it now. I was just a little confused about exactly how to go about it.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Adding a Sprite 1 Answer

How to alternate images in 2d unity 0 Answers

Bounce value not change in script for 2D object in Unity4.3. 1 Answer

2D Animation does not start 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges