Collision for a fighting game

Hi! I want to make a Java Fighting Game and I'm not even close to sure about how to do collision detection...if I could get any help (tutorials, examples, etc) it'd be a big help....thank you.

Here's a link to a little fighter I started about a 2 months ago : http://mysite.freeserve.com/punchup/files/haveafight.zip
It's far from finished but the basics are down, the only thing timing the updates is a sleep(10) :S
The way I'm doing attack collisions is by keeping a list of the attacking images, each list has a corresponding bounding box, when the player display image == one of the attack images I'll do a standard box intersection test on the attackbox and the opponents body box. I have three attack image lists which correspond to three different attack boxes: JumpAttacks, standingAttacks and duckingAttacks. It's not perfect but it good enough for me.
Hope thats makes sence.
I haven't touched the source for about a month now, I doubt I'll return to it :(

Similar Messages

  • Positive reaction to AIR touch-screen fighting game

    I thought I'd pass along news of a touch-screen fighting game that I recently released:
    https://play.google.com/store/apps/details?id=air.WRFree
    It has had a positive reaction on Google Play so far, with over 10,000 downloads and 100 ratings per week - 10% of which translate into purchases. There is also an iOS version which is playing catch-up.
    The game features sprite manipulation and depth sorting on a massive scale, so even if you're not a fan of the genre it may spur some retro 2D ideas of your own.
    I never thought I would get to make a mobile app at all, so thanks to Adobe for that!

    That's great to hear, because I don't own either of those devices and have been developing in the dark! I have yet to release my "high res" version for tablets.
    Yep, if you want something done right you have to do it yourself.

  • When I upgraded to ios 5, it asked me a for a new game center name.  How do I use my old game center name, since it makes me start some games over without it?

    When I upgraded to ios 5, it asked me a for a new game center name.  How do I use my old game center name, since it makes me start some games over without it?

    Carefully follow steps 1-9 outlined by wjosten in this post: https://discussions.apple.com/message/13356770#13356770.  This will not, however, avoid wiping any non-purchased media from your phone (ripped CDs, etc.) as this is only synced one way: from your computer to your phone.  You will have to either rebuild your iTunes library with this content and sync again to restore it to your phone, or purchase 3rd party software to copy it from your phone to iTunes prior to syncing (such as Touch Copy).

  • I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    Does the app now use iCloud, do you use iCloud and do the two of you use the same account on iCloud?
    Just a guess.

  • Purchased Itunes card..Have balance on my itunes account but trying to use the balance for an APP game...how do i transfer the funds ?

    I had a itunes card purchased for me...I redeemed it on my iphone in the Itunes APP...shows it was redeemed succesfully.Want to use the balance for an APP game i have....SImpsons Tapped out...hoe do i transfer it to it . it keeps using my credit card for purchasing premium items...how do i fix this to the itunes balance...thanks

    So then put any sim card in and restore it.  this isn't rocket science

  • Looking for a IPad Game App

    HI I am look my for a iPad Game Apps. Is there a Scrabble/Words with Friends type Games (That are Similar) where you can use First Bames and the Names of Countries?

    Search the Apple Store, there are many many words games in the style of Scarbble, inluding Scrabble itself. What rules they have and what types of words they allow Is hard to say.  But you can download some free versions and try them out to see how they play, and what they allow.

  • I want to buy Diamonds for my tos game but it come out a message ask me to contact itune support, can anyone help me with this? Cuz I had tried for a long time but still can't buy.

    I Want to buy diamonds for my tos game but it come out a message ask me to contact itune support. Can anyone help me with this? What should I do so that I can buy my diamonds?

    You can contact iTunes support via this page and ask them why the message is appearing (on these forums we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then try selecting Purchases, Billing & Redemption

  • Is there a app that will restrict all accesss to my iphone except for my sons games

    I was curious if there are specific apps out there to limit complete access to my phone except for my sons games, as in if he wants to play a game i click an app witch i can add and remove games to and once he is in that app he cant go to the home screen, he cant access anything on the phone, no messages, no calls, no nothing. I was looking at restrictions but i dont want him to try and figure out a pin number then incidentally make an emergency call. So in short is there a way or an app that will basically function as a multiple users on a computer dose?

    There is guided access, that you can enable a single app to run in, and it can not be easily exited from.
    Settings>General>Accessibility>Guided Acess

  • Not really a problem just would like to know if I install firefox 4 beta...will I lose my bookmarks already in my current firefox browers and is that the same for the farmville game bar from facebook

    Not really a problem just would like to know if I install firefox 4 beta...will I lose my bookmarks already in my current firefox browers and is that the same for the farmville game bar from facebook

    It should not be a problem, as long as you are careful. Note the delete settings option when uninstalling firefox will delete bookmarks etc for ALL installed versions of firefox.
    Firefox attempts to retain the profile information, that include bookmarks etc when updating. It may still be prudent to consider other backup methods not entirely dependent on firefox.
    The firefox 4 beta will install by default in a slightly different location, you are then able to run either the current or the beta version of firefox. It is recommended you set up a new profile for the new version of firefox. see
    * [[managing profiles]]
    *[http://kb.mozillazine.org/Testing_pre-release_versions]

  • Using Java for scripting in games - which technology to use?

    Hi, I'm currently in the process of implementing a java scripting implementation for a 3D game engine. Any suggestions on which java technology to use? It will handle high level game specific logic and a gui. So there will be a native implementation of awt created as well. I'm starting off with win32 and will port to mac and linux later.
    I'm thinking J2ME-CDC, but then theres CDLC, the personal edition, and so on. CDC and CDLC are nice since the jvm code is included but the CDC one needs to be ported to win32 (anyone already do this?)

    J2ME is designed for small consumer devices such as mobile phones, pda, pagers, set-top boxes and so on.
    You'r designing something for windows, mac and linux so I'd suggest standard edition rather than micro edition.
    I'm confused as to what you want to do though.
    Also, "porting" a java program shouldn't really be an issue (unless you've used lots of JNI or Runtime stuff).
    Basically though I don't really understand what you want to do, I did have some idea, but then you started talking about Micro Edition.

  • TS1424 I cannot connect to the iTunes Store so I can purchase coins etc for my slots game. Can I please have assistance in fixing this problem?

    Hi, I cannot connect to iTunes so that I can purchase coins etc for my slots game. Can I please be assisted in rectifying this problem? Thanks :)

    Hi alèna,
    If you are having issues connecting to the iTunes Store, you may find the following article helpful:
    Apple Support: Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    - Brenden

  • I turned iCloud back up off for all the games on my iPad, now i want to turn it back on but, now they have all disapeared from my apps in iCloud, how do i turn the back up on those specific apps back on?

    i turned iCloud back up off for all the games on my iPad, now i want to turn it back on but, now they have all disappeared from my apps in iCloud, how do i turn the back up on those specific apps back on?
    I'm trying to get them to transfer to another iPad for my kid.

    atoo2 wrote:
    I just did the IOS8 update on my Ipad retina which had 300  photos it asked me to do an iCloud back up which i did but it deleted all my previous photos and now i only have recent photos how do i get back all my old photos? It said befor that my icloud was out of storage but i didnt know it didnt have my old photos, they arnt back up on itunes either is there any way I can get them back?
    Please see the bold.  If you're out of icloud storage, then you won't be able to backup to icloud unless you purchase more storage, but yet you said you backup to icloud.
    If you really did backup to icloud no data would be loss - sounds to me that it didn't backup since you had no more free icloud storage space.
    iCloud: iCloud storage and backup overview

  • New ALchemy settings for some major games for Win7 (64-bit)...

    [color="#ff0000"]Update 2/0/0 - Added Sid Meier's Civilization V: Ok this game is so hard to find in the registry because it uses a completely radically new type of installer that basically is a hybrid installer based on pulling the steam client game updates for Civ V and the data from the actual Civ V install DVD. The definiti've install location is similar to other steam apps are installed @ location C:\Program Files (x86)\Steam\steamapps\common\sid meier's civilization v. (The blue part is common for the majority of all steam installed games locations. Finding this for Civ V was not so easy, however.
    Here is the actual entry you should add to your ALchemy.ini file and is the ONLY location that points to the aforementioned correct install path in the entire HKLM tree that is valid. This is truly a very very unique and bizarre and radically new way to find and detect correct install path strings without resorting to using the GAMEUX path (which is different on everyones computer). This path is indentical for all Civ V installs and therefore the most valid. The ALchemy team needs to address these new radical ways that game companies are injecting the install string into the registry in the future or ALchemy will start to break big time. Notice its the Uninstall path that actually functions as the only correct static install path for the game. Its a dual use path. Very clever!
    [Sid Meier's Civilization V]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mi crosoft\Windows\CurrentVersion\Uninstall\Steam App 8930\InstallLocation
    SubDir=
    Duration=5
    Preset=
    GamePath=
    RootDirInstallOption=FALSE
    Buffers=4
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [color="#ff0000"]Update 2/0/0 - Added Star Wars Galaxies Trading Card Game: A nice game if you have SWG that uses gorgeous sound while playing. Here is the ALchemy.ini addition.
    [Star Wars Galaxies Trading Card Game]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind ows\CurrentVersion\App Paths\SWGTCGGame.exe\Path
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [color="#ff0000"]Update 2/0/0 - Added Star Trek Online: The only correct and static install path for this wonderful game.
    [Star Trek Online]
    RegPath=HKEY_CURRENT_USER\Software\Cryptic\Star Trek Online\InstallLocation
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [color="#ff0000"]Update 2/0/0 - Added A few oldies but goodies: Some older games I have managed to get to work with ALchemy. The sound in these older games is UNREAL in how good they sound now!
    [Fallout Tactics]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\4 Degrees East\Fallout Tactics\ProgramFolder
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [UFO Afterlight]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AL TAR\UFO Afterlight\Path
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    [UFO Extraterrestrials]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Tr i Synergy\UFO Extraterrestrials\installed to
    Preset=
    GamePath=
    SubDir=
    RootDirInstallOption=FALSE
    Buffers=4
    Duration=25
    MaxVoiceCount=28
    DisableDirectMusic=FALSE
    The original post:
    I was playing around with the D:\Program Files (x86)\Creative\ALchemy\ALchemy.ini file to force ALchemy to run with all the games on my computer. After I changed the reg paths in this .ini file all the games I had on my computer started working with ALchemy running in Windows 7 64-bit. Windows 7 registry paths for some major game titles I play are NOT in the standard location that the ALchemy.ini file has them as which is why they never get registered. I run a 64-bit version of Windows 7 so the path is slightly different then the default ones in the .ini file. Here is what I added/changed and all these games now register with ALchemy and work! Game heading bolds are my addition in this post and not how they look like in the .ini file to help see the game titles better.
    I tend to shy away from any GAMEUX registry strings (for example: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\GameUX\S--5-2-837354825-494596859-745999896-00\{AFF227C-B0BB-49A5-8DFF-E87FDB864D}\ConfigApplicationPath) as they may be different for one computer to the next as they look identical to a SID string which changes radically as it is created when the game is installed. The strings should be static so they would appear identical on my computer as they would on yours. Having a string in the install path that looks like above just gives me the creeps that it is not valid. Since I only have my computer to compare this against I am not positi've of this. Just to be sure stay away from GameUX strings that are alphanumeric in nature as they can change from computer to computer or reinstall to reinstall making ALchemy fail. More on this at the bottom of this post.
    [Cabal]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mi crosoft\Windows\CurrentVersion\Uninstall\CABAL Online_is\InstallLocation
    Preset=
    [Dragon Age Origins]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Bi oWare\Dragon Age\Path
    Preset=
    [Dungeons & Dragons Online: Eberron Unlimited]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Tu rbine\DDO\InstallLocation
    Preset=
    [Sid Meier's Civilization IV]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Fi raxis Games\Sid Meier's Civilization 4\INSTALLDIR
    Duration=5
    Preset=
    [Sid Meier's Civilization IV: Beyond the Sword]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Fi raxis Games\Sid Meier's Civilization 4 - Beyond the Sword\INSTALLDIR
    Duration=5
    Preset=
    [Sid Meier's Civilization IV: Warlords]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Fi raxis Games\Sid Meier's Civilization 4 - Warlords\INSTALLDIR
    Duration=5
    Preset=
    [Sid Meier's Pirates!]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\At ari\Sid Meier's Pirates!\INSTALL_PATH
    Preset=
    [Star Wars Galaxies]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind ows\CurrentVersion\App Paths\SwgClient_r.exe\Path
    Preset=
    [Wizard0]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ki ngsIsle Entertainment, Inc.\Wizard0\InstallPath
    Preset=
    [World of Warcraft]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Bl izzard Entertainment\World of Warcraft\InstallPath
    Duration=0
    Preset=
    I left the Preset= in all of them to have default settings. You can change or add the additional options to your pleasure but I find the defaults to work just fine. Here are all the settings for the options from the top of the .ini file.
    ;Creative ALchemy titles
    ;Format/Options:
    ;? [TITLE]
    ;? RegPath <-- registry path containing string to executable or executable's directory (use this when available; alternati've is GamePath)
    ;? GamePath <-- Directory to look for app (use if RegPath can't be used)
    ;? Buffers <-- #buffers to use (default is 4)
    ;? Duration <-- buffer duration (default is 25)
    ;? DisableDirectMusic <-- disable DirectMusic support (default is False)
    ;? MaxVoiceCount <-- maximum number of voices to support (default is 28)
    ;? SubDir <-- subdirectory offset off of path pointed to by RegPath for library support (default is empty string)
    ;? RootDirInstallOption <-- option to install translator support in both RegPath and SubDir directories (default is False)
    Notice if you do a clean reinstall of your games in Windows 7 the game paths are in actuality in the reg path of \Wow6432Node and not just the raw HKLM\Software location due to the way the 64-bit architecture restructures its registry keys to work with 32-bit games (as many of these still are in fact).
    The duration and such you can play with but I just left the settings as they were and changed the executable path location that ALchemy needs to find and work with the game is all. If you reinstall Star Wars Galaxies the new Station Launcher will put the game folder under its location and therefore it may be different in your registry. SWG (and Cabal to some extent) is the only game in this list that specifically points to an abnormal location in the registry for the install path due to the way it is launched from a voicechat type of application (The Station Launcher). But at least it works this way, so I don't care too much. I even got my classic game Sid Meier's Pirates! to work with ALchemy, yay! For Cabal I used the uninstall location for the true install path. I assume as long as the path is valid, it will work and it shows up in the ALchemy window, yay!
    [color="#ff0000"]Please verify these paths in your registry do in fact have these valid regitry entries using regedit or regedt32 and not just modify the .ini file as I have shown above.
    GameUX strings
    There is one game I can not find any verifiable path for in the registry and that's Sid Meier's Colonization =(? If anyone has a clue where this path is stored or how to edit the .ini file to reflect the correct location and work with ALchemy please let me know! I have tried this location:
    [Sid Meier's Colonization]
    RegPath=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wind ows\CurrentVersion\GameUX\S--5-2-837354825-494596859-745999896-00\{AFF227C-B0BB-49A5-8DFF-E87FDB864D}\ConfigApplicationPath
    Preset=
    ...but it does not seem to like the GameUX registry path at all and won't detect it. Probably because its a specialized SID (in other words, the SID will be different on my computer then it is on yours) and ALchemy does not know how to transpose SID registry entries for it to work. GameUX is basically the registry location for all your Games as they are stored under the Start > Game location of your desktop. So if anyone can figure out how to include Direct3D games that are older but do not have a valid installation registry entry please let us know! Of course I could just use the full true path in this .ini file but I am not sure how that would look like and I don't want to break ALchemy for the games it does work with. So I stuck with just valid registry entries.
    I own an X-Fi XtremeGamer sound card with version .4.02 of ALchemy running on Windows 7 64-bit as of this post.

    ?pmc64 wrote:
    Why are you adding new games to alchemy No new games use eax and surround sound should work properly without it. The alchemy team doesnt need to do anything for the future of the program because it's for legacy games. You really don't? need to add wow6432node because it should read it anyways on 64 bit systems. At least it does with the 6 games i have installed. That steam regpath will work on any steam game. you just need to change the app number. About the only games that I have that need it are the old gold source games and far cry because for some reason the original reg path isnt on there. You really should update your alchemy version to 43.06 because the previous versions have problems with windows 7 and some games wont work right unless you change a .dll file to a older one.
    A few things about your post.
    ) Alchemy does not automatically detect the registry path settings as you have been misled for a lot of games you have to manually tell it where it goes. Hence this post.
    2) You are completely missing the point of ALchemy, which is to add the depth of audio in games (yes even new ones) which is lacking without them using just EAX.
    3) ALchemy is for new games not just legacy ones. hence why I have added the keys for both.
    4) I have had numerous ppl tell thank me for posting this thread and their games now are read by ALchemy. If you choose to not follow this thread its you choice. No worries =)
    5) My updater does not show any version besides 4.02 and I dont look for something even newer in some obscure forum post or whatnot. Official beta drivers from Creative tend to be less then stellar in performace (if any indicitation is by how their li've drivers are its even worse in their beta flavors). When I do the auto update it returns:
    Status: No updates are necessary for your Creative product.
    Your system already has the latest versions installed.

  • HT204088 twice now i have been twice charged for the same game can anybody help please

    on two occasions i have been charged twice for the same game download can anybody help please

    Try contacting iTunes support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Correct screen sizes for wallpapers and games on V3m RAZR for Verizon?

    Does anyone know the correct file size (i.e. 176x144) for
    wallpapers and games built for a Razr on the Verizon network? I
    know that the Razr is 176x220, but I thought that I remember seeing
    somewhere that the wallpapers should be 176x144 and games should be
    176x204 because of the top banner that is locked on the screen.
    Please advise if you know for sure. The lastest doc that I read
    about Verizon said that the status bar took 16pixels. Does anyone
    know for sure?

    I read this from a brew device data sheet on the V3m:
    The display height is 220 pixels. The number of pixels for
    status area is 16 pixels in height, so the height for BREW
    application display area is (220-16)=204 pixels in height.
    I'm not sure about wallpapers though. It looks that the top
    bar and bottom bar are the same size. I would developer my
    wallpapers at 176x188 (assuming the bottom bar is 16 px as well).
    The secondary display is 96x66. Though, I'm not sure how you
    could access that, if you want to show a small version of a
    wallpaper when its closed.
    C

Maybe you are looking for