Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7517773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:33:24+00:00 2026-05-30T01:33:24+00:00

In a game that I am making, the moment the game scene initializes, a

  • 0

In a game that I am making, the moment the game scene initializes, a random enemy will be chosen out of a list. Then, it will run a method that finds the current level. Then, it will find the number of chosen sprites required.

Each time all the enemies are killed, it will run through this process again, choosing another type of enemy, but this time the amount of enemies will have increased.

The problem is that I can’t just add on a certain value to the amount of enemies to be created, as there are many different types of enemies, and they all work in different way, and therefore, some are harder to kill than others. What I need is a process that once it has selected the type of enemy that you are going to fight, it finds out the level, and then finds out the amount of that type of enemies it should create by using some data that I have input.

Example

Zombie is the type of enemy that has been chosen. The level number is 5. It then finds out how many zombies it should create for level 5 in a list of data.

(Level 3 = 5 zombies),(Level 4 = 6 zombies),(Level 5 = 10 zombies)

What is the best way to do this. I cannot think of a way. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:33:25+00:00Added an answer on May 30, 2026 at 1:33 am

    I assume by level you mean your player level? As in an Role playing game?

    You could assign a value to each enemy relative to how difficult they are to kill. If you do that then it becomes a matter of calculating how many enemies add up to your player level.

    So if a Zombie is difficulty 0.5f then for each player level you would need to add 2 zombies. You should add some randomness to this so that it’s not that obvious that you are doing it.

    This would allow you to combine different enemy types as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a 2D game in javascript/ajax, that will be using data stored
I'm making a game that will allow content development and I'd like it to
I am making a pokemon like game that will utilize SQLite DBs for storage
I am making a grid-based game that will be much larger than the screen,
I am making an iPhone game that will be using Game Center to support
SUMMARY: I'm making a free that will only run for 3-5 months or more.
I am making a game that needs a crosshair. I have been playing with
I'm making a multiplayer flash game that has a lot of graphics/code. I'm having
I'm making a website that mail users when a movie or a pc game
I m making a Shooting game, in that I want an array of ImageViews

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.