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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by haroonalam · Jan 06, 2013 at 03:19 PM · 2dtexturejumpmemoryinfinite

Architecture of "doodle jump" type gameplay

Hi Guys, I am starting a doodle jump type of game which will be infinite. I have a requirement to have infinite (moving) background on these ends. I have some questions and need your suggestions to choose the best way in terms of memory and gameplay. Game would be for ios and android. So, my initial thoughts are

  1. I am planning make a character jumping on platforms. A scrolling or doodle jump like background ( which ll seem to move when character moves upward) so, my thoughts are for this kind of background is

  • to take a large image i.e of 2048x2048, make 2 planes, set this texture to them, when one plane ends other ll move its position on top of first, when second ends first ll move on top of second and so on

  • Other approch could be a "Instantiate" and "Destroy" of small planes having textures on them.

  1. I would like ask about the platforms that ll be require character to jump on.

  • One approach is to "Instantiate" platforms when reach on top or on left and right and then "Destroy" when out of some point threshold

  • The other approach could be a pack of 2-3 platform bundles ( make them on scene just once), and use them the same way as background described above which is changing their positions according to character position.

  1. There are about 25 different levels each background in each level. Do you guys recommend to make 25 difference scenes and load them one by one. Is that recommended to have more scenes ?

They are my thoughts, I want to go for best approach and would like to listen the best one. Is there any more appropriae way to achieve moveable background and about platforms, I ll appreciate your suggestions Thanks.

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
Best Answer

Answer by alpaca of zion · Jan 06, 2013 at 04:17 PM

If your background is seamless you could fix the position of the background image with the camera. The as the camera moves, change the texture offset on the background material. http://docs.unity3d.com/Documentation/ScriptReference/Material-mainTextureOffset.html.

I think the easiest way to handle the platforms would be to create and destroy them as the character moves. Rearranging them would probably be more efficient, but I think the performance increase would probably be nominal.

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 haroonalam · Jan 06, 2013 at 06:01 PM 0
Share

hey thanks man, textureoffset works brilliant, what do you think making multiple scene, like if angry birds has 25 levels, is that recommended to create 25 scenes ?

avatar image alpaca of zion · Jan 06, 2013 at 07:02 PM 0
Share

Depends on what the differences are from level to level. If you are just changing platform sets and the number of kinds of platforms in an area I would do it with one scene.

I would make a logic script that covers layouts, points, etc. In the logic script you could make a list of Level scripts. Each Level script would have the unique variables for each level, number of different kinds of platforms, what platform set to use, etc.

When a level is finished the scene can be reloaded. At this point I would persist an object that tells the logic script what "level to load in the start function.

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

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to handle huge images in unity? 0 Answers

Unity iOS memory usage 0 Answers

Bug? CUBE map using a LOT of memory 1 Answer

2D cube material pattern not repeating 1 Answer

Jumping from a floor to another floor (2D) 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