Jump to content


Member Since 06 May 2012
Offline Last Active Aug 24 2014 08:04 PM

Posts I've Made

In Topic: coin flip problem

11 September 2013 - 09:31 AM

My experience with C++ is pretty limited but I think I might be able to help here.


It looks like you are calling the randRange function before entering the if statement, and you are assuming that the result is stored in a variable that is called randRange. What you need to do is either store the return value of the function call into a variable, or just call the function within the if statement. I prefer the latter, and here's a small example:

if (randRange(1, 10) >= 5) {
    // do stuff here

That should solve your current problem.

In Topic: A Few General Questions...

11 September 2013 - 09:24 AM

A big problem with a lot of games, especially when cross-platform, is handling screen sizes. With pixel art, scaling up isn't as much of an issue with some other forms of art because you are working with individual pixels and making a single pixel bigger isn't difficult. Scaling down is sometimes a different issue.


It sounds like GameMaker doesn't handle this well, so what I would recommend is trying your hand at coding the game yourself or trying a more robust engine. Unity comes to mind of course, and it can handle scaling very well. You will also have the capability of testing any screen size you want while making the game so you know what your issues are immediately.


If you want to go the coding route, of course it will be more work, but you will absolutely learn more and have more control over your game. You might consider starting with something like Haxe for the many platforms it can target. You'll also get a lot of programming experience and have quite a bit of control using Unity and writing up all your own scripts.


Best of luck, and I hope I helped at least a little bit.

In Topic: Handling libraries

11 September 2013 - 09:15 AM

Generally the larger frameworks won't work well with others. Like someone already said, OpenGL and DirectX won't work well together. 


First, you'll want to choose a framework to start with, probably something OpenGL or DirectX based, like SFML and others. Once you know which of those you will use, you can find solutions to particular problems. For example, if you want a way to create a menu in a certain way, it would be better to search for a way to do it in your framework and possibly find some open source code out there that does what you need. 


Better to stick with one and learn the ins and outs to get what you need done.

In Topic: [OOP] Two classes that can acces each other's members

30 July 2012 - 02:18 PM

I'm a beginner and only have experience with Java so far, but accessing another classes members should be as simple as creating a public method that returns the wanted information.

Maybe I don't understand the question properly.

In Topic: Tiled vs Full Image Assets

28 July 2012 - 07:33 PM

Awesome, thanks