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 5997343
In Process

The Archive Base Latest Questions

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

i would like to create a pretty simple combat system in JQuery, for a

  • 0

i would like to create a pretty simple combat system in JQuery, for a browser game. The idea is that i have combat statistics ( i already have that ), and i want to represent them back to the user in a nice graphical manner.

If you have played the game shakes and fidget, you can already see what i’m asking. If not, think that two parties are fighting, visualize two images. The first party attacks, then the second, then the first again and so on..

Ideally, each time a party attacks, i should show the damage done (probably like flashing the damage right on top of the image associated with that party). Then the health meter goes down (i actually have that bar, so it’s not a problem).

My main problem, is how to do that in like a manner that seems like the story of the battle unravels. Should it be sort of like a timer ? And then, how do i actually present flashing values in a nice manner ?

Any related tutorials or resources on that topic would be greatly appreciated 🙂

NOTE that i’m looking for code help, samples even better, that would help me in actually coding that.

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

    It seems like you’re talking about something like FF7, alternating offense/defense.

    Interface


    You might want to take a note from WoW/Rift-type MMORPGs:

    • animation: numeric hit/defense points appear in full opacity and then it scrolls down and fades out (as one fluid animation) over a period of something like 2 seconds
    • attacks in one color, defense in another color
    • something of statistical significance (rare/good hits) appear in larger font and possibly different color
    • positioned right near the visual/character, near the center of the screen, or above the character

    Programming Language


    Though it is doable, something with that much animation is probably going to be very cumbersome in JavaScript (not the code, but the processing). Because you want fluidity, something like Flash/Java would probably be the best for a web interface. However, if you want to do it in purely JavaScript, jQuery/jQueryUI has a bunch of events/easings.

    Quick Example


    To illustrate my point here’s a jFiddle (and updated jsFiddle).

    Note: this only demonstrates fading out using opacity and animation using top positioning, fiddling with the topStop,speed, and timer duration will help you cater it to your specific needs.

    Edit


    This answer is old (2011) it is now 2015. With the advent and progress of technologies like HTML5 Canvas, WebGL, and ASM-JS, you can do much more powerful game creation/management in the browser. For example, look at what EPIC-games is doing. The need to depend on something like Java, Flash or Silverlight is no longer necessary. That said, it would take some time to build anything robust and performant enough.

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

Sidebar

Related Questions

I would like create my own collection that has all the attributes of python
I would like create a web service in ASP.Net 2.0 that will supports JSON.
I would like to create a stored procedure in MySQL that took a list
I would like to create events for certain resources that are used across various
This seems like a pretty simple question, but I have not managed to find
I would like to create simple editor screen - similar to the Add Event
I'd like to create a simple application that lists all computers on a given
Would like to create a strong password in C++. Any suggestions? I assume it
I would like to create a database backed interactive AJAX webapp which has a
I would like to create an SSL connection for generic TCP communication. I think

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.