XNA Creators Club Online
community forums

Search Forums

Page 1 of 3 (22 items) 1 2 3 Next >
  • Re: sprite X,Y coordinates

    in your sprite class you have to set a position variable and set it to a vector2. Here is an example: I personally use a GameObject Class which looks like this: 1         public GameObject(Texture2D loadedTexture)  ...
    Posted to General (Forum) by Jaeyoon on 11/15/2008
  • Re: Help! 2d collision movement error!

    Awesome! thanks allot for the suggestion, i got the icicles to move when they are hit. But the one thing that stopped working is that they stopped dying when they hit the bottom of the screen, they just keep going on downwards. Here is my updated code 1 /// <summary>  ...
    Posted to General (Forum) by Jaeyoon on 11/15/2008
  • Help! 2d collision movement error!

    Code So im trying to get my icicles to fall whenever they are hit by projectiles. But right now they just jump down a certain distance whenever they are hit with the projectile. I was told that the problem has to do with it only increments the position when the projectile collides with the icicle. But when i tried putting code directly into ...
    Posted to General (Forum) by Jaeyoon on 11/14/2008
  • Re: Posting code to the forums

    Wait where is the insert code button in the editor?
    Posted to FAQs (Forum) by Jaeyoon on 11/13/2008
  • Re: collision error

    Ok so here is what i tried: I put the statement: foreach( gameobject icicle in icicles) { if (icicle.hit) { icicle.position += icicle.velocity; } } and its still not working. I thought the update method does this statement during each frame so then i dont understand how it could be adding it for only the one frame that the ...
    Posted to General (Forum) by Jaeyoon on 11/11/2008
  • Re: collision error

    So then in order to fix that should i just put the icicle.position += icicle.velocity; directly into the update method instead of a separate method that is called by the update method?
    Posted to General (Forum) by Jaeyoon on 11/9/2008
  • Re: collision error

    line 57 in the first link that i gave has the code: icicle.position += icicle.velocity; /? that statement is held in the updateProjectile method. I have updateProjectile; in the update method. So I dont understand why its not working. Will adding the gametime line make it work?
    Posted to General (Forum) by Jaeyoon on 11/9/2008
  • Re: collision error

    this is the only other code that affects icicleroof: http://rafb.net/p/wctOuA35.html I set the velocity in the update icicle method with the line: icicle.velocity = new Vector2(0, (float)icicle.position.Y - 1.0f) * 2.0f;
    Posted to General (Forum) by Jaeyoon on 11/9/2008
  • collision error

    Im trying to get my icicles to fall when they get hit by a projectile. I have the icicles in an array. They are loaded across the top of the screen and i have the firing code going fine for my projectiles. But when the projectiles hit the icicles on the top of the screen, the projectiles die but the icicles dont fall.. Help plz. here is my ...
    Posted to General (Forum) by Jaeyoon on 11/8/2008
  • Re: error

    uhh we cant see your image..
    Posted to General (Forum) by Jaeyoon on 11/8/2008
Page 1 of 3 (22 items) 1 2 3 Next >