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

  • Home
  • SEARCH
  • 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 805813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:08:58+00:00 2026-05-15T00:08:58+00:00

I am making a game and I am trying to decide what is the

  • 0

I am making a game and I am trying to decide what is the best practice for exchanging damage between two objects on the screen. Should the damage be passed directly between the two objects or should it be pass through a central game engine that decides the damage and different criteria’s such as hit or miss or amount dealt.

So overall what is the best practice.

  • 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-15T00:08:58+00:00Added an answer on May 15, 2026 at 12:08 am

    It depends in large part on the rules of the game. However, it’s not unusual for multiple objects to need to get involved. However, I would advise against putting game-rules code into the MovieClip instance that displays the object; keeping them as peers allows game state to be separated and saved/relayed more easily.

    Here’s an example:

    • Actor A initiates an attack.
      • Actor A provides an accuracy value (hit roll).
      • The weapon (or ammunition, if applicable) provides a base damage value (damage roll) and damage type.
      • The type of Weapon determines how Actor A’s abilities modify the hit roll and damage roll.
      • Modifiers on the weapon may modify the rolls, add additional damage components, or associate “on-striking” effects with the attack.
    • At this point it seems there’s an attack object-class forming, containing the following:
      • Accuracy value
      • A collection of typed damages (maybe empty for effect-only attacks)
      • A collection of additional effects (maybe empty)
    • Now the attack reaches the target.
      • Special effects on the target that trigger when attacked may go off.
      • The target may have many layers of defenses — cover, concealment, evasion, deflection, blocking, armor, and natural armor, for example. Any or all of these may contribute to the attack failing.
    • The attack connects.
      • Special effects on the target that trigger when struck may go off.
      • The target may have damage reduction or elimination capability as well, such as armor heavy enough to absorb part of an attack, or immunity/resistance/weakness to one or more specific attack types.
    • Actual damage can now be resolved. This may be zero if the attack was accurate but ineffective.
      • Special effects associated with the attack resolve.
        • Some may be contingent on damage, such as injury-delivered poison.
        • Some may be unconditional, such as a disabling burst.
      • Special effects on the target that trigger when damaged, such as reactive armor or “thorns” damage, may go off.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a turned based poker game and trying to figure out the best
I am making a game and I am trying to find the best way
I'm making this game where I'm trying to pair people. So I have this
I am trying to use AJAX for a web app game that im making.
I am trying to create a game server, and currently, I am making it
I'm making a game in a java applet and I'm trying to optimise my
Basically I'm trying to improve on the Ghosts in a Pacman game I'm making.
I am making a game and I am trying to create a game end
So here is what I am trying to do.I am making a game using
I'm making a little game using the ANDengine library,so I'm trying to set a

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.