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 /
avatar image
0
Question by bbaarrr2015 · Nov 09, 2015 at 11:14 AM · unity 5movement2d gameobjectsalgorithm

Object movement algorithm

Hi well , i am working on a game and its about avoid blocks, now i have being working on level 1 and level2 , and it seems that i work too hard, i throw blocks that goes through the middle , and to build it takes me forever , i set position, then if(transform.position.x <= ... && transform.position.y == ...){ vector3d.right*speed*Time.deltaTime} thats how i make blocker move.. and sometime in another screens its goes wrongly but its a minor bug cuz it almost never happen , which means the block goes in straight line on axis X , from left to right or right to left , i need to throw him like 6 time in the first level, so i check it every time and it takes me 6 hours for 1 level!, there is any way to make it easier? Thanks for the help! will appriciate a good way to make it easier.

Btw i am newb with unity , i am working with unity for like 3 weeks till now, i am just learning the engine , so excuse me if i am stupid about things..

Comment
Add comment · Show 4
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 AngryTilde · Nov 09, 2015 at 12:37 PM 0
Share

Sorry, I am a little confused on the type of game you are creating is it like an inverted 'catch' game? Objects fall down the screen and ins$$anonymous$$d of catching them you are avoiding them?

avatar image bbaarrr2015 AngryTilde · Nov 09, 2015 at 02:35 PM 0
Share

I got a character in the middle its 2D , so its spining stick, think of spining stick and i throw at him blocks and you need to avoid them by touching the screeing if you touch the left side its spining left and if you touching right its spining right, and you need to avoid the blocks. my problem is at throwing the blocks its so hard to make the objects move from left to right, so i ask you if you know a way to make an object , kind of enemy ai , thats sprites goes from one position to the next with speed that i choose.

avatar image AngryTilde bbaarrr2015 · Nov 11, 2015 at 03:00 AM 0
Share

I think I got it, but do you have your current block script handy? Showing it might help getting your intent.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Unexpected Symbol 'end of file' error 1 Answer

Snake like movement in 2D space 0 Answers

how to cancel all other action while combat or dash? 1 Answer

How do I assign a velocity to an object on only 1 axis? 1 Answer

Script Error: OnCollisionEnter2D 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