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 qua1ity · Jun 02, 2015 at 02:59 PM · spawningenemiesinfinite runner

Infinite runner spawning enemies, need some guidelines.

Hi,

I'm currently working on an infinite runner and i have most stuff set up already. Now I'm trying to figure out a good way of adding obstacles/enemies to the game and was hoping that someone could give me some directions on how to do this.

Currently i have a spawner moving along the x-axis, which randomly picks a platform out of an array and placing it inline with the previous one. Pretty basic.

So onto the question. Do experienced developers have some kind of standard on how to manage the creation of obstacles? Or are there any preferred ways?

I had an idea in mind, but not sure if it's optimal. Basically, since there is an array with all the platforms that could spawn (they all fit together, so its kinda like a puzzle on the go). Can i define each platform to have enemies, obstacles etc included on them, or would that be a bad idea?

For example. Platform 1 is defined with a enemy in the middle, platform 2 got an enemy on the far left, platform 3 got no enemies, and so on.

Thanks in advance!

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 SterlingSoftworks · Jun 02, 2015 at 03:43 PM 0
Share

Personally, how you just explained is how I would set up enemy spawning, but have it randomized on the platforms, rather than plat 1 being middle spawn it'd be completely random where there are. Another thing to add variety, if possible, would be to add flying enemies for an extra challenge!

avatar image qua1ity · Jun 02, 2015 at 04:34 PM 0
Share

Alright. Thanks for your reply! I will look more into that approach

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

21 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

Related Questions

Unity2D spawn frequency not working C# 0 Answers

Using fog/mist to disguise enemy spawning 2 Answers

Max Spawning Obejcts 0 Answers

Spawning enemies in hieararchy 1 Answer

How to start coroutine after it gets stopped 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