Hello Guest
No Avatar
Sign In to Remove
Posts: 
56
Reputation: 
4
Posted: November 16, 2011, 9:54 AM
  • Group: Member
  • deviantART: Imperiousnel
  • MSN: Pirate_King0@hotmail.com
  • Photobucket: Nelo_Angelo1
I wanted to know if anyone had an idea on how to create specific functions inside a GUI. This is what I have in mind:

- Character effects ( Random damage effects with numerical values instead of physical )
- Status effects ( Paralysis, Numerical reduction, ect )

Im currently using Netbeans 7.0.1, with SDK 6 installed. I also have Dreamweaver CS5, aswell as Flash CS5. I have the latest WAMPserver installed also.

I tried looking online, but I cant find a site/tutorial that tells me the right java functions for this. I cant try this in school because we dont have advanced coding classes for the job.
Posts: 
400
Reputation: 
20
Posted: November 16, 2011, 10:42 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Is this java or javascript. I really have no clue on java and I do not know anyone to ask to help you out if that is the case.

What are you trying to do exactly? Would jQuery and html work for this?
<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
56
Reputation: 
4
Posted: November 17, 2011, 7:16 AM
  • Group: Member
  • deviantART: Imperiousnel
  • MSN: Pirate_King0@hotmail.com
  • Photobucket: Nelo_Angelo1
Its Javascript based/ or a small portion of C++. Html would come into this because I want to build a GUI to help me moderate a future website. Its for a game to be exact. jQuery would work perfectly aswell. Here is an example of what I plan on doing.

Code: [Select]
public abstract class Character extends GridUnit
{
        // Character types.
        public static enum Type {
                PLAYER,
                ORC,
                KOBOLD,
                SKELETON
        }

        protected static final int CRITICAL_MULTIPLIER = 2;

        protected String name;

        protected int level = 1; // characters are level 1 by default.
        protected int currentHealth;
        protected int maximumHealth;
        protected int minimumDamage;
        protected int maximumDamage;
        protected int viewRange = 0; // characters are blind by default

        protected int attackCooldown;
        protected int movementCooldown = 0; // characters cannot move by default
        protected long nextAttackTime;
        protected long nextMoveTime;

        protected volatile boolean dead = false; // characters are obviously not dead by default

        protected Character killedBy;

        protected Map<CharacterEffect.Type, CharacterEffect> effects;

        /**

Thats just the basic framework for all characters. I also want to make a framework for effects for characters to use. Example

Code: [Select]
public class CharacterEffectFactory
{
        /**
         * Returns new characters effects of the given type.
         * @param type the character effect type.
         * @param subject the character the effect belongs to.
         * @return the character effect.
         */
        public static CharacterEffect factory(CharacterEffect.Type type, Character subject) throws Exception
        {
                CharacterEffect effect = null;

                // Return the requested type of character effect.
                switch( type )
                {
                        case DOUBLE_DAMAGE:
                                effect = new DoubleDamage(subject);
                                break;

                        case COUNTER:
                                effect = new Counter(subject);
                                break;

                        default:
                                throw new Exception("Failed to create character effect, type '" + type + "' is invalid!");
                }

                // Initialize the effect.
                effect.init();

                return effect;
        }
}

Posts: 
400
Reputation: 
20
Posted: November 17, 2011, 8:17 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Its Javascript based/ or a small portion of C++. Html would come into this because I want to build a GUI to help me moderate a future website. Its for a game to be exact. jQuery would work perfectly aswell. Here is an example of what I plan on doing.

It looks like c++. Can you make a image of what you are trying to do? I can not really explain how to do something because I do not know which you are trying to do still.
<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
56
Reputation: 
4
Posted: November 19, 2011, 4:44 AM  -- Last Edit: November 26, 2011, 11:56 PM by MLM
  • Group: Member
  • deviantART: Imperiousnel
  • MSN: Pirate_King0@hotmail.com
  • Photobucket: Nelo_Angelo1
Alright here is an example.

Here is the primary effect I was talking about. ( This is me )


Now here is a base HP of 100. ( This is my enemy )
 - You can see the effect I placed on my enemy with the icon.


Now here is a screen showing the effect of my skill reducing health by 7. ( This is me )


Theres a way of making these effects in a GUI, or code them using Lua or some other sort.
Posts: 
400
Reputation: 
20
Posted: November 26, 2011, 11:57 PM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Is there any documentation on the framework / system you are using for the game?

Can I get a link to this because I honestly am not seeing how this is web oriented.

Also you have to post a image with an actual image link not just a web page with the image
<3 Nerve, Sk8, Labradoodle, Austin