Jump to content


OMAGA

Member Since 03 Jul 2010
Offline Last Active Oct 23 2011 11:20 PM

Topics I've Started

Pointers

19 July 2011 - 07:56 AM

Are pointers part of GML? I looked it up in the help files but there was nothing.

Pause game

18 July 2011 - 12:42 AM

One thing I have never seen is an actual game pause. Pretty much every pause function is a save game that moves you to a different room with a menu. The exception was a theory that you can take a screen shot and display that behind a popup menu. I havent found a code for that, but how about just a plain old pause? I was thinking for a more interesting pause you freeze the player, enemy's, etc, and leave dynamic lights and animations on while displaying a small menu, why isn't that around? It strikes me as an obvious thing to want to do.

Sprite slicing

17 July 2011 - 11:22 PM

Does GM support slicing a sprite into 2 or more pieces? I would like to split an image in half. I thought I could duplicate a sprite and do a size change (not scaling), but according to the help file those are read only value :(

Call a .reg file

16 July 2011 - 09:36 AM

I found the registry key for setting sticky keys on and off. I have seen lots of people have issues with this on the forum and If anyone wants it I will upload for everybody. Anyways, I was wondering if a reg file can be called by gml, it would be useful. Also wondering of it would work without admin. I tried it on a guest account and it was fine, however I have removed all restrictions from my computer so that may not be reliable testing. The only thing is that you probably need to restart the computer for the change to take effect :(
I will be searching for more solutions to the problem, perhaps a dll could do it? I'm doing it mainly for educational purposes so I rather find code to do it myself than be directed to a pre made solution.

Note: reg file is native to XP pro, I cant guarantee it will work on other win versions, butvi do have a vista and could make another reg file from that.

C++ dll example please

14 July 2011 - 11:02 PM

I sure this has been asked many times before, but how can you make a dll communicate with a GM game? At this moment my standings are this:

I have a C++ compiler
I know how to use a dll with gml code
I am educated enough to make sense of a basic - mid level script, however I have never made a dll (only exe)
And i have a book all about C++ (A really big one so you don't miss any of the words)

Could someone please direct me to an example C++ script which is meant to perform some function in GM, or explain how this works? Something as simple as a script you can send a value to and return value would be of great help.