XNA Creators Club Online
foros de la comunidad

Search Forums

Page 1 of 2 (15 items) 1 2 Next >
  • Re: Getting (1,2) of a Vector2 (noob question) 0.0

    vector2 my_pos = new vector2(64,93) means my_pos.X is equal to 64 and my_pos.Y is equal to 93 if it were a vector3, the third would be the "X, Y, & Z" value, and a vector 4 would be the "X, Y, Z, & W"
    Posted to General (Forum) by Ebola0001 on 01/05/2009
  • Re: How do I rotate a model so that it just points in the same direction as the right joystick?

    This is the code i use to translate the joystick input into a float angle. float AngleInput = MathHelper.TwoPi - ((float)Math.Atan2(GpadLeft.Y, GpadLeft.X) + MathHelper.TwoPi) % MathHelper.TwoPi; if(MyGamePad.ThumbSticks.Left.Length() > 0.125f)      Angle += (MathHelper.WrapAngle(AngleInput - Angle) / 20.0f) * ...
    Posted to General (Forum) by Ebola0001 on 01/05/2009
  • lotsa class copies or a single copy with a list in it

    hey guys i have a question of efficiency, it is more of a c# question that true XNA but it is in my XNA game... so oh well... is it worth the effort to make a single copy of a class that will hold n copies of an object ( 1 copy of the class, with say a 1000 positions, angles, and speeds within it), or (1000 coppies of the class, one for ...
    Posted to General (Forum) by Ebola0001 on 01/05/2009
  • preventing content pipeline from trying to load texture stored in a .x file

    hey guys  the current problem I am having is at compile time the content pipeline is loading my .x file, and it is trying to go to a hard coded file location (my desktop on my PC at home) because this is the location the texture was in when 3DS saved the .x file... it is saved in compressed binary format so i can't just text edit it ...
    Posted to General (Forum) by Ebola0001 on 21/04/2009
  • how expensive is color key collision

    [I moved my message over from the XNA framework forum, cause it is more of a general question I think} hey guys, I am working on my little project here and have gotten to the bugbear of collision. here is my problem, my "map" loads from a text file, dropping different pieces of geometry into the world for the player and ...
    Posted to General (Forum) by Ebola0001 on 17/04/2009
  • normals gone all funky

    hey guys I'm having a strange problem importing a .x file into my game. the .x file views just fine in the .x viewer, but when I load it into my game some of the normals are flipped and some are just ...
    Posted to XNA Framework (Forum) by Ebola0001 on 27/03/2009
  • Re: 2D Compass/Map for 3D Game

    well you should be able to get an angle for the compas to point here is how it would work in my mind. PseudoCode vector2 PlayerPosition;  vector2 EnemyPosition;  vector2 EnemyDirection;  ...
    Posted to General (Forum) by Ebola0001 on 21/03/2009
  • Re: changing the texture from a .x file

    thank you, that got me headed in the right direction, i went into the SkinnedModelBasicEffect,  the thing i was looking for was called diffusemap, which i should have recognized, i was looking for something called texture or something... ohh well thats what happens when you program tired
    Posted to General (Forum) by Ebola0001 on 21/03/2009
  • Re: Scaling from the center of an image?

    are you using spritebatch to draw the cloud image?, if so one of the overloads "spritebatch.Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth);" allows you to set the origin something like ...
    Posted to General (Forum) by Ebola0001 on 21/03/2009
  • Re: TimeSpan.FromMilliseconds keeps rounding up

    I think its supposed to do that because the milliseconds part of a "timespan" is defined as an int internally, so the timespan.frommilliseconds turns your input into a timespan.millisecond  which is an int it is very possible that I am just confused though
    Posted to General (Forum) by Ebola0001 on 21/03/2009
Page 1 of 2 (15 items) 1 2 Next >