The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 9:26 am



 [ 6 posts ] 
Hitboxes 
Author Message
User avatar

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...
Image

Adopted by KonamiFlash, Guitar_Hero is my uncle mii and j-corp are my grandparents
children:SmashKing08, maniacmario64, Glydekid, SolidKlonoa wife:ashante08

Image
Intelligence Test


Fri Aug 12, 2011 8:09 pm
User avatar

Joined: Fri Jan 22, 2010 8:39 pm
Posts: 563
Location: Florida
Country: Jamaica (jm)
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
WWW
User avatar

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...
Image

Adopted by KonamiFlash, Guitar_Hero is my uncle mii and j-corp are my grandparents
children:SmashKing08, maniacmario64, Glydekid, SolidKlonoa wife:ashante08

Image
Intelligence Test


Fri Aug 12, 2011 8:22 pm
User avatar

Joined: Fri Jan 02, 2009 6:02 pm
Posts: 7283
Location: Australia
Country: Australia (au)
Gender: Male
MGN Username: Tid
Currently Playing: Deep™ The™ Game™
every function is different depending on the language.

_________________
ImageImageImageImage
Ask me anything!!!
Special thanks to Steven for my beautiful Deep avatar! <3


Fri Aug 12, 2011 8:38 pm
WWW
User avatar

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
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Crab Combat wrote:
if you're having trouble knowing where to put them and how big to make them, just pretend you're a capcom dev and shove them anywhere

Or pretend you're ZUN and put a tiny round hitbox in the center of your character.

_________________
Image


Sun Aug 14, 2011 1:16 am
Display posts from previous:  Sort by  
 [ 6 posts ] 

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

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.