The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 12:12 pm



 [ 16 posts ]  Go to page 1, 2  Next
GML -> C++ (I know the basics, just can't step up) 
Author Message
User avatar

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. :sweat:

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? ;)

_________________
Image
ProbablyUnlikely.webs.com - All my games (that i can find...)(that i have completed...)



Mon Dec 21, 2009 5:47 pm
WWW
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Have you read about object classes that create forms and stuff?

_________________
Image


Tue Dec 22, 2009 4:27 am

Joined: Wed Oct 21, 2009 4:23 pm
Posts: 107
Gender: Male
randomman159 wrote:
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. :sweat:

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? ;)

learn .NET C++ or C++0x


Tue Dec 22, 2009 4:52 pm
Legendary Ghost
User avatar

Joined: Mon Aug 04, 2008 7:44 am
Posts: 1031
Location: Pennsylvania
Country: United States (us)
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
User avatar

Joined: Mon Dec 21, 2009 2:05 am
Posts: 53
Location: At my computer
Gender: Male
Skype: randomman159
Thaiberium wrote:
Have you read about object classes that create forms and stuff?


Nope, can you help me with that? I've only done stuff that excecutes into Command Prompt window.
Masked Man wrote:
randomman159 wrote:
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. :sweat:

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? ;)

learn .NET C++ or C++0x


Whats wrong with normal C++
but if i have to, where can i find these things?

Deep Thought 42 wrote:
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.


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.

_________________
Image
ProbablyUnlikely.webs.com - All my games (that i can find...)(that i have completed...)



Sat Dec 26, 2009 10:45 pm
WWW
User avatar

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.

Code:
class human {
   private:
      int bank_account;
      double wealth;
      int ID number;
   public:
      int age;
      int children;
      double length;
      double weight;
      string name;
      int breathing (double lung_volume);
      int sleeping ( );
      void eating (double stomach_volume);
}; // human


You could use this to make functions accessible only to specific classes.

_________________
Image
Liberal Socialist Mudraking Bastard (Averted, not performing any journalism)


Sun Dec 27, 2009 6:59 am
User avatar

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.

_________________
Image
ProbablyUnlikely.webs.com - All my games (that i can find...)(that i have completed...)



Sun Dec 27, 2009 6:28 pm
WWW
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
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
Code:
JPanel mainPanel = new JPanel();

A rather simplistic example.

_________________
Image


Mon Dec 28, 2009 10:08 am

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
User avatar

Joined: Tue Nov 17, 2009 1:26 am
Posts: 648
Gender: Anime Girl
randomman159 wrote:
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.


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:
Code:
void human::eating (double stomach_volume) {

_________________
Image
Liberal Socialist Mudraking Bastard (Averted, not performing any journalism)


Mon Dec 28, 2009 4:28 pm
User avatar

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

_________________
Image
ProbablyUnlikely.webs.com - All my games (that i can find...)(that i have completed...)



Mon Dec 28, 2009 6:39 pm
WWW

Joined: Wed Oct 21, 2009 4:23 pm
Posts: 107
Gender: Male
randomman159 wrote:
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

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
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Really, does no one bother trying XNA?

_________________
Image


Tue Dec 29, 2009 7:54 am
User avatar

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...

_________________
Image
ProbablyUnlikely.webs.com - All my games (that i can find...)(that i have completed...)



Thu Dec 31, 2009 10:05 pm
WWW
User avatar

Joined: Tue Nov 17, 2009 1:26 am
Posts: 648
Gender: Anime Girl
http://www.cppgameprogramming.com/cgi/n ... llegbasics

Would that be of any use?

_________________
Image
Liberal Socialist Mudraking Bastard (Averted, not performing any journalism)


Sat Jan 02, 2010 8:27 am
Display posts from previous:  Sort by  
 [ 16 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.