Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
This question was closed Jan 17, 2017 at 03:23 PM by tanoshimi for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by ReykurGS · Jan 17, 2017 at 08:01 AM · 2d-platformerflipping

Would love some advice, based on a reply of yours about 2D sprite flipping. (U5.3)

@JoeStrout I hate to bother you, but I saw your post on flipping 2D characters in Unity 5.3 using the SpriteRender.flipX; and was wondering if you might be able to give me some advice on how to implement this into code, I am nearly a complete novice at coding, only having started about a week ago, and have a post about the subject here. Now what I think I should be doing, and please correct me if I'm wrong, is: 1. create a bool titled (atlo) flipx 2. declare bool with getcomponent(spriterenderer.flipx) in start method 3. code on L key press !flipx

I ran into a problem with part 2 though, monodev is saying that spriterenderer.flipx is a property used as a type, I'm actually a little confused on what that means, and how to work around it. Any feedback is worth more than gold to me right now, so naturally I would really appreciate it. :) -Reykur

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 ReykurGS · Jan 17, 2017 at 01:07 AM 0
Share

fixed it with GetComponent().flipX = true; and respectively false, on keydown and keyup in input method.

avatar image JoeStrout · Jan 17, 2017 at 03:08 PM 1
Share

Please don't use the Unity Answers site as a way to contact someone directly. You could have ins$$anonymous$$d used the P$$anonymous$$ feature in the Unity Forum. Or, even @-mentioning me in your forum thread there would have been more appropriate.

But, good job figuring it out!

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Hi, just a small question. Why isn't my enemy flipping? I know I'm doing this right because my player if flipping, but what about my enemy. I'm getting really frustrated here. 0 Answers

Flip Player, Not the Player's Child. 3 Answers

(2D sidescrolling platformer) Flipping my character right or left depending on the mouse? 2 Answers

How to monitor the movment speed of a 2D sprite 0 Answers

Player Flipping and Shot/Tilemap bugs 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