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 StandardsDT · Mar 03, 2011 at 03:03 AM · 2djumpingplatformer

2D Platformer - Jump on platforms in Background

I posted this in the Scripting section of the forum but figured it will get noticed more here.

I've done some searching but so far everything I found doesn't seem to apply to what I'm looking for. All of the one way platform information that I've found on here has been very useful and will be very helpful for when we do implement them. But what I'm looking to do is to be able to jump on platforms that are in the background. There are a few sections where the player can take two routes. Either take a slightly easier way (the background) or keep on the path in the foreground. Below I've attached what I am talking about. Don't mind the models/textures I have in right now, they are placeholders for the time being. Any help on this is greatly appreciated.

alt text

Comment
Add comment · Show 3
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 Alec-Slayden · Mar 03, 2011 at 03:21 AM 0
Share

Is there something preventing you from implementing the z axis?

avatar image by0log1c · Mar 03, 2011 at 03:52 AM 0
Share

What's the real question? Do you have some code?

avatar image StandardsDT · Mar 03, 2011 at 07:39 PM 0
Share

The question is how do I get the character to jump on the platforms in the background. But there was a suggestion made by Joshua that I didn't even think of because I was racking my brain so hard at something so simple.

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Joshua · Mar 03, 2011 at 04:07 AM

I'm assuming you have set it up that the player can only move in one direction, let's say it's the z axis. At certain platforms you want to enable movement in the x axis too though. My idea would be to make those platforms a trigger, and then in your script when it's triggered enable movement in the z axis. But you're not showing me any code, so I have no idea if this is helpful.

I mean, unity is a 3d game - you must've disabled movement in one of those dimensions for the 2d platformer to work. Now just don't disable that at certain points and you're done.

Comment
Add comment · Show 2 · Share
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 StandardsDT · Mar 03, 2011 at 07:37 PM 0
Share

It's based off of the 2D Platformer Tutorial that the Unity Team themselves provided. Basically I'm taking what I learned from there and applying it to my own game. But to be honest, I didn't even think of that truthfully. I'll give it a shot! Thanks!

avatar image StandardsDT · Mar 03, 2011 at 09:04 PM 0
Share

I should also note it's actually the player is running along the X axis and he needs access to the Z-axis. So I would have to enable movement through a trigger to the Z-Axis.

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

No one has followed this question yet.

Related Questions

2D platformer jumping that feels good 1 Answer

I am having issues with my Jumping Script. 2 Answers

Top-Down Jumping (2D) 1 Answer

2D Sidescroller enemy AI jump help! Picture Included! 3 Answers

How to jump in 2D? 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