Author |
Message |
randomman159
Joined: Mon Dec 21, 2009 2:05 am Posts: 53 Location: At my computer
Gender: Male
Skype: randomman159
|
I am fluent in the language of GML (Game Maker Language) but i want to learn C++. I have read books, done tutorials and stuff, but can't get past where im up to. I can make all sorts of programs that run in Command Prompt, but can't figure out how to get into the actual form style program. I'm actually aiming to make computer games. I make them all the time with GML, but can't for the life of me get anything but a word game in C++. Could anyone help?
|
Mon Dec 21, 2009 5:47 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Have you read about object classes that create forms and stuff?
|
Tue Dec 22, 2009 4:27 am |
|
|
Claus
Joined: Wed Oct 21, 2009 4:23 pm Posts: 107
Gender: Male
|
|
Tue Dec 22, 2009 4:52 pm |
|
|
Deep Thought 42
Legendary Ghost
Joined: Mon Aug 04, 2008 7:44 am Posts: 1031 Location: Pennsylvania Country:
Gender: Male
|
Dark GDK is a good way to get started in C++ game programming. http://gdk.thegamecreators.com/It's free and provides libraries for easy game creation. But as Thaiberium said, you should probably learn about objects. Object-Oriented Programming (aka OOP) is an important concept to know. Google it, there are hundreds of places to learn about it from.
_________________ Place all complaints in the circular file.
|
Sat Dec 26, 2009 5:15 pm |
|
|
randomman159
Joined: Mon Dec 21, 2009 2:05 am Posts: 53 Location: At my computer
Gender: Male
Skype: randomman159
|
Nope, can you help me with that? I've only done stuff that excecutes into Command Prompt window. Whats wrong with normal C++ but if i have to, where can i find these things? I have downloaded that, attempted twice. Both times, it hasn't worked... EDIT: also, i would prefer if i could get close to prof asap.
|
Sat Dec 26, 2009 10:45 pm |
|
|
Villerar
Joined: Tue Nov 17, 2009 1:26 am Posts: 648
Gender: Anime Girl
|
Object-oriented programming is using classes with specific private and public parameters. For instance, take the following example. You could use this to make functions accessible only to specific classes.
_________________Liberal Socialist Mudraking Bastard (Averted, not performing any journalism)
|
Sun Dec 27, 2009 6:59 am |
|
|
randomman159
Joined: Mon Dec 21, 2009 2:05 am Posts: 53 Location: At my computer
Gender: Male
Skype: randomman159
|
yeah i get all that (except the:
int breathing (double lung_volume);
and
void eating (double stomach_volume);
)
but i can't get forms working, and i can't manage to get the visual side of things.
|
Sun Dec 27, 2009 6:28 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
I dunno how you do it in C++ but in Java, its just a class like anything else and you just created a new one like so A rather simplistic example.
|
Mon Dec 28, 2009 10:08 am |
|
|
Maikel
Joined: Mon Dec 28, 2009 7:11 am Posts: 9
Gender: Anime Girl
|
If you want to program games with C++ i think you should give a try to the SDL API. I was making a fighting game a while ago, and the programmer used that.
|
Mon Dec 28, 2009 11:00 am |
|
|
Villerar
Joined: Tue Nov 17, 2009 1:26 am Posts: 648
Gender: Anime Girl
|
Those things would be member functions, which have the advantage that you don't have to declare variables already defined in the class itself. So that function could freely recall the integer "age" without having to declare it. Such a member function has the following header:
_________________Liberal Socialist Mudraking Bastard (Averted, not performing any journalism)
|
Mon Dec 28, 2009 4:28 pm |
|
|
randomman159
Joined: Mon Dec 21, 2009 2:05 am Posts: 53 Location: At my computer
Gender: Male
Skype: randomman159
|
Ok, i get that member stuff now, but the main thing i need is help on graphics.
I can create word games, and stuff, but can't get a graphical game working. I've spent hours browsing the internet, finding absolutely nothing that can really help me... I want a clear explanation on how to get sprites, etc. working on a form, how to create the form, and how to have C++ equivalents to objects (in game maker) ...
Thanks
|
Mon Dec 28, 2009 6:39 pm |
|
|
Claus
Joined: Wed Oct 21, 2009 4:23 pm Posts: 107
Gender: Male
|
I just searched up "C++ Graphics library" and found dozens of libs. But before we get there, I suggest you try CBitmap from MFC, BITMAP from Win32, and Bitmap^ from .NET for images
|
Mon Dec 28, 2009 9:23 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Really, does no one bother trying XNA?
|
Tue Dec 29, 2009 7:54 am |
|
|
randomman159
Joined: Mon Dec 21, 2009 2:05 am Posts: 53 Location: At my computer
Gender: Male
Skype: randomman159
|
what the graphics library? I want to code, not use anything graphical in the place of programming... When i said:
" i can't manage to get the visual side of things "
I meant that i don't know how to program so that it is a visual thing, like a real game, instead of only getting the black screen with words...
|
Thu Dec 31, 2009 10:05 pm |
|
|
Villerar
Joined: Tue Nov 17, 2009 1:26 am Posts: 648
Gender: Anime Girl
|
_________________Liberal Socialist Mudraking Bastard (Averted, not performing any journalism)
|
Sat Jan 02, 2010 8:27 am |
|
|