Top Questions - Resolve as Fixedmost recent 30 from http://resolveasfixed.stackexchange.com2010-03-16T23:44:16Zhttp://resolveasfixed.stackexchange.com/feedshttp://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://resolveasfixed.stackexchange.com/questions/7/creating-a-bulletCreating A BulletJonathon2009-10-23T04:12:08Z2010-03-13T01:27:26Z
<p>Hello,</p>
<p>I am having issues figuring out a way to create an object from inside of another object. More specifically, I have a player that holds a gun that needs to fire a bullet.</p>
<p>What I have is a main World class which contains a vector of objects. This vector will run through a loop to do all the update logic/rendering for each object.</p>
<p>Now, I have a basic gun object. The player class will hold a pointer to this gun class.
Where I am stuck is the creation of the bullet/projectile. The player will call a function on the gun class to initialize the bullet, but I don't have any idea how to get the bullet object into the objects vector in world in order to be displayed/etc.</p>
<p>Any ideas? Is my classes even right?</p>
http://resolveasfixed.stackexchange.com/questions/13/how-do-i-make-buttons-that-slide-inHow Do I Make Buttons That Slide In?ShadowBoxer452009-10-27T03:10:14Z2010-03-04T07:30:11Z
<p>Playing Starcraft, I was just wondering how to achieve the same effect as they do when bringing their buttons on screen. (0:20 into this video - <a href="http://www.youtube.com/watch?v=r4ijwtGCaRg" rel="nofollow">http://www.youtube.com/watch?v=r4ijwtGCaRg</a>). </p>
<p>I tried doing position.x += 5, but how do I get it to move less towards the end like how the buttons slows down?</p>
http://resolveasfixed.stackexchange.com/questions/4/how-can-we-improve-resolveasfixedHow can we improve resolveasfixedhey guys2009-10-22T14:22:47Z2009-10-30T18:19:50Z
<p>How should resolveasfixed be changed to better meet the needs of the game development community?</p>
http://resolveasfixed.stackexchange.com/questions/19/regarding-the-name-resolve-as-fixedRegarding the name Resolve as FixedMartin2009-10-27T14:13:22Z2009-10-27T16:32:23Z
<p>This name is too generic to describe any specific characteristic of games at all. A stack overflow has a connection to software development in general, which makes it suitable for that site. What was the reasoning behind the choice of 'Resolve as Fixed' as the name?</p>
http://resolveasfixed.stackexchange.com/questions/12/stdmap-for-an-image-managerstd::Map for an Image ManagerShadowBoxer452009-10-27T02:24:05Z2009-10-27T13:31:53Z
<p>Q: How would I determine if a "key" exists in a map? </p>
<p>Context: Im making an image manager that has a single function that takes a string paramater that is the file folder/file name of the image file. </p>
<p>Example: <code>Image& Ret(string FileName)</code></p>
<p>I want it to return a reference to the image that has been stored in memory. The function will have a dual purpose of being a "setter" and "getter." The map is so the keys will be the FileName. How would I go about determining if map[FileName] exists? I tried using find() but it returns an iterator and I tried evaluating it as NULL but it didnt work, so im kind of lost as to how I would check it or if there is a better way. </p>
<p>Thank you! :)</p>
http://resolveasfixed.stackexchange.com/questions/10/ifstream-in-half-lifeifstream in Half LifeBenji2009-10-24T14:13:04Z2009-10-24T23:46:51Z
<p>Hi,</p>
<p>I'm not entirely sure if anyone will know this because it's a pretty old game (yes, I know), but anyway, I have a question about coding for Half-Life 1. Basically, if I make a dll that modifies the game, and then use something like:</p>
<p>ifstream file_in("readme.txt");</p>
<p>I can read from readme.txt, provided it is in the Half-Life directory. But say I put readme.txt in a sub-directory called "game". Now, if I try the following, it won't work:</p>
<p>ifstream file_in("/game/readme.txt");</p>
<p>Anyone know how to code it so that I can read from readme.txt when it's in a subdirectory? Thanks.</p>