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

Am am making a wap-game that will have a minimap. It is basically a
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'm making a program/game that will update automatically. i have the update part down,
I am making a grid-based game that will be much larger than the screen,
I'm making a game that loads images from a spritesheet. When run on an
I am making an android game that spawns enemy sprites at a certain interval
I'm making a game that will function as a web app, and I have
I am trying to use AJAX for a web app game that im making.
I am making a game that has its own level editor. The editor simply

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.