Author |
Message |
Feng
Joined: Tue Aug 12, 2008 4:01 pm Posts: 239 Location: GA
Gender: Male
|
So how would you make hitboxes on a char how big or little and something simular to tekken (i dont want to to be like tekken yet but just wanna no how to make it.) becuase tekken has so many techinical things about it how you can do things like tech rolls, juggles, countering , and mainly dodging becuase lets say if you were fighting someone and they tried to do a high kick your low would "dodge" his high kick and you still inflict dmg on them.
_________________Live by the sword die by the sword... Adopted by KonamiFlash, Guitar_Hero is my uncle mii and j-corp are my grandparents children:SmashKing08, maniacmario64, Glydekid, SolidKlonoa wife:ashante08 Intelligence Test
|
Fri Aug 12, 2011 8:09 pm |
|
|
Panthera leo
Joined: Fri Jan 22, 2010 8:39 pm Posts: 563 Location: Florida Country:
Gender: Male
MGN Username: masterp443
Skype: masuta_marusu
Currently Playing: v0.9b
|
You provided absolutely no information for anyone to help you. For starters, what language or engine is this in? Game Maker Language? ActionScript 3?
_________________cliquez ici
|
Fri Aug 12, 2011 8:18 pm |
|
|
Feng
Joined: Tue Aug 12, 2008 4:01 pm Posts: 239 Location: GA
Gender: Male
|
lol becuase i wasnt making in any particualr language although since i have game maker gml. but if you wouldnt mind i would like to see the others.
_________________Live by the sword die by the sword... Adopted by KonamiFlash, Guitar_Hero is my uncle mii and j-corp are my grandparents children:SmashKing08, maniacmario64, Glydekid, SolidKlonoa wife:ashante08 Intelligence Test
|
Fri Aug 12, 2011 8:22 pm |
|
|
Tid
Joined: Fri Jan 02, 2009 6:02 pm Posts: 7283 Location: Australia Country:
Gender: Male
MGN Username: Tid
Currently Playing: Deep™ The™ Game™
|
every function is different depending on the language.
_________________Ask me anything!!! Special thanks to Steven for my beautiful Deep avatar! <3
|
Fri Aug 12, 2011 8:38 pm |
|
|
Snoble
Joined: Tue Jun 16, 2009 2:48 am Posts: 834 Location: Australia.
Gender: Male
Skype: snoble7
|
there are many many ways to make different things happen in each language
assuming you were using a language like as3 (excuse me if im wrong about any of what i write next, ive had limited experience with as3) , you could have the function that makes an attack happen store an integer in a variable on the fly, and this variable would dictate the attack type - for example the attack() function is called and then another variable, attacktype is assigned a number which can be read by the program to dictate the type of attack we are doing
if the other player then uses a "counter" or "block", which would be indicated to the game engine by a similar integer-variable system, and a listener function you set up determines that the two hitboxes which you drew up in programming earlier in fact intersected - i.e. one players attack hit anothers block, you could cause the program to take the action of stopping the animation, playing some sort of animation to indicate that the attack was blocked, and then taking no further action
however, if the player was not blocking you would simply have the attack run its course and do a % of hp damage
since we are deciding between two things here, it would be best to use an if/else block to follow the attack through its course and make decisions appropriately
keep in mind this is just one example! programming itself is an abstract concept - there are no set "guidelines" or pre-programmed blocks of code to do specific things, there are a million and one different ways to program the same result.
|
Sat Aug 13, 2011 7:30 am |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Or pretend you're ZUN and put a tiny round hitbox in the center of your character.
|
Sun Aug 14, 2011 1:16 am |
|
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|