XNA Creators Club Online
Page 1 of 1 (12 items)
Sort Posts: Previous Next

The Wizard - multiplayer?

Last post 09-28-2008 4:44 PM by owen777. 11 replies.
  • 09-25-2008 5:57 PM

    The Wizard - multiplayer?

    hi,

    i decided to make the wizard tutorial multiplayer, but i dont know how? Cany anyone help me? I cant use the peer 2 peer sample, because for some strange reason it doesnt work.

  • 09-25-2008 8:32 PM In reply to

    Re: The Wizard - multiplayer?

    You should figure out what that strange reason is, and get the tutorial to work, first.

     


    Jon Watte, Direct3D MVP kW X-port 3ds Max .X exporter kW Animation source code
  • 09-26-2008 11:05 PM In reply to

    Re: The Wizard - multiplayer?

    Yep.. done.. Problem solved.
  • 09-26-2008 11:30 PM In reply to

    Re: The Wizard - multiplayer?

    Nice idea! Way to expand upon the original concept and congratulations on getting your problem figured out. Always fun to see people taking the tutorials and running off with them in new directions.
  • 09-27-2008 11:16 AM In reply to

    Re: The Wizard - multiplayer?

    George Clingerman:
    Always fun to see people taking the tutorials and running off with them in new directions.

    What?

  • 09-27-2008 2:29 PM In reply to

    Re: The Wizard - multiplayer?

    Not sure what's confusing about that? I did make the assumption that you were talking about my tutorial series called The Wizard at XNADevelopment.com. And I was just saying that it's fun seeing you take that and expand upon the original concept. Which is what you said you were doing....so what was confusing about that?
  • 09-27-2008 11:31 PM In reply to

    Re: The Wizard - multiplayer?

    George, I think he thought you were trying to say he got the Wizard to work over a network, I think owen777 really meant that he got the peer to peer sample working.
    http://xblcgreviews.com
  • 09-28-2008 4:07 PM In reply to

    Re: The Wizard - multiplayer?

    yes.

    BTW... your tuorials are really good! i followed every single one and understood it all! One Slight Question though. Is it possible to make the healthbar go down by 1 if a fireball hits another person? i'am trying to make it multiplayer.. Maybe make a quick tutorial try to get it multiplayer?

  • 09-28-2008 4:12 PM In reply to

    Re: The Wizard - multiplayer?

    Yes it's possible to do that, but I don't currently have an samples showing just exactly how to go about doing that. Basically you just need to detect if a fireball has hit a player, that's your first step.  Then when that occurs, take the Health bar and decrease it. There's lot of code out there showing how to do 2D collision detection (hint: use the Rectangle or BoundingBox objects and their Intersect() method).

    As for multiplayer, I'm still working on more basic tutorials. Covering multiplayer is a whole can of worms I'm not sure I'm ready to jump to yet. I'm working on it in my own projects and when I have a good grasp I'm  sure I'll start releasing samples but i have a whole lot more to cover at XNADevelopment.com before I get to doing multiplayer games.

    Thanks for the feedback though and I'm glad the tutorials are helping!


  • 09-28-2008 4:19 PM In reply to

    Re: The Wizard - multiplayer?

    George Clingerman:
    Yes it's possible to do that, but I don't currently have an samples showing just exactly how to go about doing that. Basically you just need to detect if a fireball has hit a player, that's your first step.  Then when that occurs, take the Health bar and decrease it. There's lot of code out there showing how to do 2D collision detection (hint: use the Rectangle or BoundingBox objects and their Intersect() method).

    As for multiplayer, I'm still working on more basic tutorials. Covering multiplayer is a whole can of worms I'm not sure I'm ready to jump to yet. I'm working on it in my own projects and when I have a good grasp I'm  sure I'll start releasing samples but i have a whole lot more to cover at XNADevelopment.com before I get to doing multiplayer games.

    Thanks for the feedback though and I'm glad the tutorials are helping!

     

    Ye Your my XNA Hero!  XD

    ===================

    Right, i embedded the healthbar into the Wizard Tutorial and it works fine :) just making a 2d game with health bar and with network features. Dont mind if i share it do you?

  • 09-28-2008 4:27 PM In reply to

    Re: The Wizard - multiplayer?

    Go for it. That's why I release the source code and provide all the assets to the community. I WANT you guys to take the basics and start mixing, matching and combining to form your own projects. I like seeing it when people take what I started with and take it all kinds of new directions. So yes, definitely, take what you've done and share it!
  • 09-28-2008 4:44 PM In reply to

    Re: The Wizard - multiplayer?

    George Clingerman:
    Go for it. That's why I release the source code and provide all the assets to the community. I WANT you guys to take the basics and start mixing, matching and combining to form your own projects. I like seeing it when people take what I started with and take it all kinds of new directions. So yes, definitely, take what you've done and share it!

     

    hehe.. I'll upload what i've done soon!

    ----------------------------------

    I dont know if you can help me here but i'll try and exaplin it. I'am trying to check for a collision if a fireball hits another " Sqaure Guy" then delete him. ( the person who got shot )

    I found in your car game that you've used the bounding box:

     

    private bool CheckCollision(Hazard theHazard)

    {

    BoundingBox aHazardBox = new BoundingBox(new Vector3(theHazard.Position.X, theHazard.Position.Y, 0), new Vector3(theHazard.Position.X + (mHazard.Width * .4f), theHazard.Position.Y + ((mHazard.Height - 50) * .4f), 0));

    BoundingBox aCarBox = new BoundingBox(new Vector3(mCarPosition.X, mCarPosition.Y, 0), new Vector3(mCarPosition.X + (mCar.Width * .2f), mCarPosition.Y + (mCar.Height * .2f), 0));

    if (aHazardBox.Intersects(aCarBox) == true)

    {

    mCurrentState = State.Crash;

    mCarsRemaining -= 1;

    if (mCarsRemaining < 0)

    {

    mCurrentState = State.GameOver;

    mExitCountDown = 10;

    }

    return true;

    }

    return false;

    }

     

     

    Can you convert that to the wizard? like if Fireball Hits Sprite2, then Delete Sprite 2? I'll have a go.....

Page 1 of 1 (12 items) Previous Next