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 awplays49 · Jun 30, 2015 at 03:55 PM · bugcontrollerissuemirror

Child object consistency issue

Hello,

I have an issue with a child. I have a spritesheet with the player and several accessories, and I attached them to the player as a child. This is a 2D game. When I move left, I make the local scale of the attachments (-1, 1, 1) and when going right they are scaled at Vector3.one.

When I am moving left, I can sometimes see a split in between the objects, and this is my issue.

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 awplays49 · Jun 30, 2015 at 08:07 PM 0
Share

I even tried

 child.transform.position = transform.position;

Still no luck :/

avatar image awplays49 · Jun 30, 2015 at 09:22 PM 0
Share

please help me? :(

avatar image Inok · Jun 30, 2015 at 09:32 PM 0
Share

$$anonymous$$ake empty gameobject and put all content of character to childs of this gameobject. And scale x of this parent. Scale not childs but parent of all this.

1 Reply

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

Answer by fuego_see_money · Jun 30, 2015 at 09:44 PM

I had a problem very similar to this, but with environment tiles from sprite-sheets in my 2D game. I did a lot of research and it turns out (as seen here and here and even more places) that if you align your spritesheets perfectly, they will sometimes get gaps between them (like in the second hyperlink).

There are a few things you can try:

1) On your import settings for your spritesheet of your player, use Point filter mode. (This didnt work for me but it worked for some people)

2) You can also try setting texture mode to "Advanced" and then fiddling with the Filter, Mipmap, and Wrap modes to see if you can get something to work. Some people also say changing the Format to RGB 24-bit mode has solved their problem as well. (see TextureImporter documentation for more)

3) This is what I did - Scale your individual parts of your character to be a little bit overlapping, so that when those gaps appear, you wont actually see it. This is more of a bandaid fix, which is why i hope #1 or #2 will work for you, but you might have to do it.

Cheers (and good luck), -Will

Comment
Add comment · Show 3 · 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 awplays49 · Jul 03, 2015 at 12:33 PM 0
Share

@fuego_see_money The childing it all to an empty seemed to work well, until i found out i was mistaken. It is still happening. please help :(

avatar image awplays49 · Jul 03, 2015 at 01:54 PM 0
Share

Upping the fixed timestep helps, but I dont want to up it above 100fps so Idk

avatar image fuego_see_money · Jul 04, 2015 at 06:32 PM 0
Share

Yeah 100fps is quite a lot - I would recommend overlapping your sprites by a good 5 pixels or so on every side.

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

23 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 avatar image avatar image

Related Questions

Keyboard inputs randomly drop in Unity 5.4 2 Answers

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Player Launched Into Air Problem 2 Answers

Controller like CubeWorld 0 Answers

Issue where if I click a button then press W,A,S,D the value of my sliders go down by 10 or up by 10 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