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 alexm · Oct 25, 2012 at 11:04 PM · androidios

Puzzle Game

Hi all. My idea to create 2d puzzle game using Unity 3d. My question is: can I do this. You will say: of course man :) it is Unity. But! The main my problem is device resolution. So I have a lot of screen in png - these are my puzzle levels. I also have got pieces for this screen in png format too. And all these images have just one size (2000 x 2000 px). User can move these pieces through all screen and if pieces will intersection with place on the screen they will snap to this place. In this case PLACE this is some coordinates on screen. For example I have 5 points (coordinates on the screen). These points are my places.

For example first place have coordinate x = 10 and y = 20.

When piece will be located around this place it can snapped to this place. But it is cool if my screen resolution on some device have value 2000 x 2000 px (for example of course - because my images have the same resolution 2000 x 2000). So in this case my scale is equal to 1 and I don't care about any transformation for my images.

So my question is: how to choose an approach to solving this problem? I need to scale it. or I have to choose some way that which is independent of coordinates?

Thanks in advance.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by FearThisTeam · Oct 26, 2012 at 12:02 AM

Its hard for me to wrap my head around what you're asking here, but if its regarding a coordinate system, what I've always done is just make grids of cubes using the default cube gameobject, and then attach script to the cubes with OnMouseOver and OnMouseExit functions which would work well since your textures are squares, just like the cube faces. I dont know what your game looks like at this point, and I doubt this is a solution at this point, just wanted to let you know how i handle 2d puzzle games using a coordinate system. However, Im not very familiar with the snapping element.

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

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

10 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

Related Questions

Android Communication 1 Answer

MySQL and Unity android build 2 Answers

My game has low FPS on iPhone 5 but not Android... 0 Answers

Multiple Tiled GPU warning: RenderTexture color surface errors? 0 Answers

Question about 'performance' between iPhone4 and (4s & ipad3) 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