• 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 IvarX · Mar 09, 2012 at 10:11 PM · 2dgameplay

Questions related to the '2D Gameplay tutorial'

Hello guys.

I've recently started learning the ropes of game development. So far I've followed a couple of tutorials and I'm trying to learn the basics of Javascript and c#. Right now I'm following the tutorial Unity provides about how to make a 2d game which you can find over here: http://unity3d.com/support/resources/tutorials/2d-gameplay-tutorial.html

After I had finished the tutorial itself I've started to create my own levels, add new features to the game with what I've already learned so far, but right now I thought about adding some new features to my game from which I don't really know how to make them yet. I want to try to solve and create all the new things myself, but this are just some things I really don't know about how to create them. Therefore I'm asking for help over here.

A) To begin with, I want to add a second camera view to the game. A 2.5D camera view. I managed to get the camera on the right spot, but I also want to add a feature for the movement of the character. Perhaps you've played the game Dragonica before? In this game your character can move by x and y axis, but it can also move diagionally over the z axis. This is something which I want to add to my game as well. I've tried to add this in the 'Platformer Controller' script and I also tried to create it by either using a Configurable joint or the other character controller scripts Unity delivers, but these only resulted in my game or my character being glitched. So the first thing I'm wondering about is if anyone could teach me a way how to add this feature to my characters movement. This is a picture showing what I mean:

http://i.imgur.com/RyzAZ.jpg

And this is a YouTube video of the game Dragonica, where you can see the movement style I'm talking about: http://www.youtube.com/watch?v=Lbd3Orp8phI

So your character does not rotate while moving diagonally, but he is just walking straight moving diagonally.

Up next I've already learned how to make certain features such as a Main Menu, a Game Over screen, triggers to the next level (on collision or when all enemy's are dead or both), but there are a couple of things I still really want to learn to include this in my game.

B) Pressing escape will lead you to the main menu, a really easy script, with just one problem. Press esc once and you'll lose your progress without a warning. So I actually want to create a warning first saying anything like 'Are you sure you want to exit the game?' with two buttons. Either 'Yes', which leads you back to the main menu or 'No' which just lets you continue with the game.

C) A level selection screen with character save and load possibilities. From the main menu, you can either press 'New Game' or 'Continue'. When you press New game, that will start a new game, which will delete all your player data as well. Pressing continue will lead you to a level selection screen, where you can click the level you want to play. After you've finished a level, the next level will be available. I've already read a couple of things that you can manage this by the use of 'PlayerPrefabs', but I'm still clueless how to actually manage this.

D) At last I wanted to ask if anyone could give me some good suggestions what I should use for a combat system for both my character as the enemies. I've already found a couple of good tutorials about it, so I don't really have problems creating this feature for my game. I was just wondering if anyone had some good suggestions of what I could try :) The animations are making it difficult as well!

If you could help me out with any of the points A, B, C or D I'd be very grateful. Of course, I'm asking nobody to answer all of these points, but any answers at all would be great :)I actually have a lot more on my 'To do'-list, but at first I just want to try and create them myself. The points I've named are just a couple of things which I really have troubles with and which I think are very important for the game right now.

Thanks a lot in advance,

Ivar.

Comment
Add comment
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

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Assets/Scripts/PlayerController.cs(32,49): error CS0126: An object of a type convertible to `float' is required for the return statement 1 Answer

What Is/Are... (Common Game Terms) 1 Answer

Forward speed changes itself 0 Answers

How to code for the camera recap the respawned objects? 1 Answer

making and integrating Visual novel element in 3d game? 2 Answers


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