Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
This question was closed Sep 03, 2015 at 07:54 AM by MewEight for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by MewEight · Aug 31, 2015 at 06:37 PM · spritelogic

Dont touch the wire games

Curious on a few things.

  • How to make some parts of the sprite above the wire and some parts of the sprite behind the wire.

  • What logics should be used, ie. colliders? raycasting?

  • How to make sure the player dont jump from one place to the other?

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 BlackSnow_2 · Sep 01, 2015 at 03:55 AM 0
Share

You might be better off with a pseudo-3D game ins$$anonymous$$d, honestly.

avatar image MewEight · Sep 01, 2015 at 06:05 AM 0
Share

care to elaborate more on what you mean by pseudo-3d?

avatar image BlackSnow_2 · Sep 01, 2015 at 06:46 AM 0
Share

@$$anonymous$$ewEight Similar to the 2D Scrolling Space Shooter tutorial on the Unity Learn website, where the actual development area is 3D but the game looks 2D. It allows you to use 3D shapes on a 2D game.

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by hulahoolgames · Sep 01, 2015 at 03:26 AM

  1. Assuming you are talking about the "ring" object in the scene, one thing you can try is cut up the ring sprite in two halves and align them to form the ring and have a common parent for them, so that you can move the parent to move them both. Then you can have the wire and these two ring halves be on the same "Sorting Layer". Give the ring sprite behind the wire "Order in Layer" value of 0, give the wire value of 1, and give the ring part in front of the wire a value of 2. You can find a tutorial on sorting layers here.

  2. You can keep small colliders at the ends of the ring and the wire. I think with raycasting you might have to constantly keep checking if the ring ends overlapped with the wire.

  3. I don't quite understand what you mean by player jumping from one place to another.

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 MewEight · Sep 01, 2015 at 06:04 AM 0
Share

its like how to prevent the player from lifting his finger and just placing it on another point of the wire.

avatar image hulahoolgames · Sep 01, 2015 at 06:14 AM 0
Share

Okay, I was thinking on similar lines. You can detect Touch phases like Began(finger touched screen), $$anonymous$$oved (finger was dragged o screen), ended (finger was lifted) etc. You can move the ring only during the moved phase. In the Began phase you can put logic that starts moving the ring only when you place the finger again within a certain radius of the ring current position and again move the ring in the moved phase. Hope that makes sense.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Best way for object with many gameObjects 0 Answers

Unity 5.0 Sprite slicing messes up with much vertices. 0 Answers

Detection system 0 Answers

Unity 2D sprite animation is tearing. 0 Answers

Is it possible to create a texture that hides a specific texture? 0 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