- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 45
- Posts with Upvotes
- 42
- Upvoting Members
- 32
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Games Development Student in year 2. Studying for a bachelors degree.
- Interests
- Gym, modelling, programming, soccer, gaming
- PC Specs
- Toshiba laptop, 3gb ram, 1gb GT230M graphics,2.13GHz core 2 duo
318 Posted Topics
Re: But you have only loaded 1 image? | |
Re: You will need to use either loops, or just create more variables and do the same as you have there. | |
Re: You have the cylinder value set to 0. How does it calculate the height of the cylinder without the volume? | |
Re: normally, a for loop has the following syntax [CODE]for(index=0;index<-sumNumber;index++)[/CODE] Of course, this can change quite dramatically, but this is the basic that you will use alot. Index starts at 0, index++ adds 1 to the index each time the loop runs. The loop will end once index reaches sumNumber One … | |
Re: [QUOTE=Narue;1343290][B]>Namespaces are a relatively new C++ feature just now starting to appear in C++ compiler[/B] If by "just now" you mean "almost two decades ago", you'd be correct. They're not new, and all decent compilers have a mature implementation in place.[/QUOTE] Seems like a google search for namespaces and a … | |
Re: [QUOTE=mangopearapples;1461149]Sorry? I was just giving him an example.[/QUOTE] He was referring to the negative feedback he received, nothing about you. But, you just basically gave the guy cut and paste code. If he just googled mouse listener, from masijades post, he would have [I]had[/I] to learn what a mouse listener … | |
Re: Just incase what you have in a do..while() loop. [CODE]do{//start the loop here cout << "Rock, Paper, Scissors Game\n"; cout << "You are playing against the computer\n"; cout << "Type 1 for rock\n"; cout << "Type 2 for paper\n"; cout << "Type 3 for scissors\n"; cin >> userChoice; //User enters … | |
| |
Re: Interfaces can only contain method signatures and constant declarations. this: Employee emp = new Employee(); emp.pay(); Is not allowed. What are you trying to accomplish? | |
Re: I'm not sure of your understanding of polymorphism. Polymorphism is not **method overloading**. Method overloading is a feature which allows the creation of methods with the same name which differ from each other in the type of the input and the output of the function. Each of these methods will … | |
Re: As a side use for javascript, it is a supported scripting language in the Unity3D game engine! So if you ever want to make cool games, you can do it in javascript, which is pretty awesome if you think about it! | |
Re: Hi, simple error I spotted straight away is your class declaration: public class Pritish extends Applet implements ActionListener implements Runnable { } You have the implements keyword twice! To implement multiple interfaces, you just use the " , " character. public class Pritish extends Applet implements ActionListener,Runnable { } | |
Re: Can you post your getPath() method from your computer class? Most likely you don't have the path setup correctly, which will mean the icon is not found and therefore will be null. | |
Re: The simple way I did my 3D level editor in XNA is create a separate project. Then, when I was finished placing objects in the editor, I saved the data into xml format. The data just consisted of standard things like: position,scale,rotation. In my main game project, I then created … | |
Re: Perhaps you can post the code you have already done, that way we can steer you in the right direction or let you know if the direction you are going is fine | |
Hi, I am wondering if there is a way to store and search quickly a group of numbers. What I want to do is store a group of Vector3D positions, and then later on, I want to search some sort of array/hashmap based on a current group of Vector3D positions. … | |
Re: Just going by the error on the screenshot, the IDE has told you the problem, are you sure you have initialised CurrentControl? Are you initialising after you try to use it? | |
Re: `Item Item[] = new Item[5];` You also need to fix this. You dont even have a variable. You cannot use a class name as a variable. EDIT: Apparently you can :D but I have never seen it before nor do I advise to do it, unless of course there is … | |
Re: Hi, So what is the actual problem? I have never used DarkGDK before, but if you let us know what is happening/what you expect to happen, we can easily let you know if your theory is off. | |
Re: Well, to start off, create 2 new files, 1 called Author, 1 called Book. Just make sure they are created in the same package(folder) to avoid any unecessary confusion. Then do exactly what your brief said. Create the variables needed in each class. Java already has it's own LinkedList class … | |
Re: One of the easiest frameworks to use is microsofts XNA and C#. It is free to develop for the windows platform(and sell) but if you want to move into the console market, it will cost like 100quid to get your game on xbox live. | |
Hi, Been looking about and cannot find an answer to this. Is it possible to view the class diagram for your project in the express edition of VS? If not, are there any plugins etc. for it which would allow me to do so? If not, does anyone have any … | |
Re: [QUOTE=firstPerson;1677588]For the most part it should be, especially judging from @OP's post, I wouldn't expect him to be doing any problem that hasn't been solved or has a variant of the solution he needs.[/QUOTE] Unless, of course, your expectations were wrong! | |
Re: Of course it is possible! Think of an object as a piece of data. It has a type and it has a value. Exactly the same way you create an array of ints. An int is a type, and it has a value. So, Say your class name is Foo...Therefore, … | |
Re: Hi, firstly you are forgetting a ; at the end of your header file. | |
Re: Do a search for all references of Window.Title in your IDE. That should tell you where it is being changed. Does the title say paused, before you pause the game for the first time? | |
Re: An array of size 2 will mean you can store 2 objects. I am not sure why you think it is 3. So, An array which holds 2 objects will looke like this: array[0] = object 1 array[1] = object 2 So, when you create an array of size N. … | |
| |
Re: [url]http://en.wikipedia.org/wiki/Subroutine[/url] Take a look at that. | |
Re: There is no "Keylogger" interface in Java. So the thread title does not make sense. Anyway, to add to what harinath said, You cannot make a keylogger using java. It lacks the low level operating hooks needed to do it. | |
Re: [QUOTE=gerard4143;1674682]Why won't you make the parameters unsigned integers?[/QUOTE] You could do this, But if he was taking input from the user for example, he would have to do the same check for a negative value. | |
Re: You would declare a variable static, if you want that variable to be common to ALL objects. For example, [CODE] class Foo { public static int counter = 0; private int objectNumber; public Foo() { objectNumber = ++counter; } public int getObjectNumber() { return objectNumber; } } [/CODE] So, ALL … | |
Re: There is a very handy maths operation called modulo. Which finds the remainder of division of one number by another. So, what do all even numbers have in common? Yes, they have a remainder of 0 when divided by 2. The modulo operator is: % [CODE] for(int i=0; i< aray.length;i++) … | |
Re: Do you understand that the entry point for your program is the main method? It seems as if you ar expecting it too run through the code from top to bottom. | |
Re: to go to my documents from where you are there type: cd "My Documents", then type: cd "folder you saved to", then type: javac Quiz1.java | |
Re: After a healthy 2 weeks straight coding a game, I had an equally healthy episode of thinking in code. [CODE]if dishes need washed put in dish washer else sit down[/CODE] And many of the same type of things, what is even sadder is I laughed at myself until I started … | |
Re: What do you mean? Do you mean the colour of the code you write? :/ | |
Re: Maybe something to do with creating the function with no prototype? Normally you would separate class into a .h and .cpp file. Not sure though, maybe you don't need prototypes in classes | |
Re: Why don't you use the engine supporting the game you just linked to? It says it is open source | |
Re: How are you positioning the '+' character? I assume you are trying to create a crosshair. What I would do is, have a crosshair image and use this formula to center it on screen. crosshairX = (Screenwidth - crosshairImageWidth)/2 crosshairY = (Screenheight - crosshairImageHeight)/2 The camera should have no effect … | |
Re: Have you tried narrowing it down? Using the debugger etc? | |
Re: Isn't the std namespace part of iostream? #include <iostream> should do it. Also, I found this: [I]_tmain is a macro that expand to main o wmain according to _UNICODE macro. In VC2005, By default , a program is unicode enabled (UNICODE and _UNICODE defined) so your _tmain macro expands to … | |
Re: Line 17 you declare an ifstream....like Insensus said, that is an input file stream, he assumed you were actually trying to read data because of this. Use ofstream for writing to files. You will also need to change ios::in to ios::out or ios::binary depending on what you want to do. … | |
Re: I'm not really understanding your question. But, going by your [B]thread title[/B], to delete a particular position, you would basically follow these steps. 1. Point iterator to the first position in list 2. Move the iterator forward until you reach your desired index(e.g. for loop) 3. Make the current nodes … | |
Re: You don't seem to grasp the use of getters/setters. They are used to set/get member variables for each instance of a class. [CODE]string DayOfTheWeek::getDay() const { string simDay; cout << "Enter The Day Of The Week:\n"; cin >> simDay; return simDay; }[/CODE] Tell me which member variable you should be … | |
Re: [CODE] [B]Resistance A;[/B]//HERE YOU DECLARE A VARIABLE A option = A.Option(); if (option == 1) { int colorA, colorB, colorC, colorD; double Rsistance; string Color[4], answer; char temp1[10], temp2[10]; do { string answer = "n"; [B]string A[/B], B, C, D;//HERE YOU DECLARE A AGAIN [/CODE] Your Resistance object goes out … | |
Re: Why do you have an array for base pay aswell? If the base pay is different for each person, why not just make base_pay another member variable for the struct? | |
Re: [CODE] for(i=0;i<2;i++) {row = 0; col = 3; col1 = 0; value[row][col1] = (array[row][col]-value[row][col1+1]*array[row][col1+1]-value[row][col1+2]*array[row][col1+2])/array[row][col1]; row++; col1++; value[row][col1] = (array[row][col]-value[row][col1-1]*array[row][col1-1]-value[row][col1+1]*array[row][col1+1])/array[row][col1]; row++; col1++; value[row][col1] = (array[row][col]-value[row][col1-1]*array[row][col1-1]-value[row][col1-2]*array[row][col1-2])/array[row][col1]; } [/CODE] This doesn't make sense. You are setting the values of row and col1 each loop to be back at 0. So the loop will … |
The End.