Jump to content


Anthony

Member Since 02 Apr 2004
Offline Last Active Mar 11 2009 01:52 PM

Topics I've Started

Drawing Curves

03 November 2006 - 01:43 PM

Hey guys,

what would be the best way to draw certain curves, such as arcs, but in particular bezier curves in gamemaker? I'm now trying with paths, but I hate doing it like that. Isn't there a better way?

Ant

Parsing And Validating A Mathematical Expression

09 October 2006 - 12:29 PM

Hey guys,

for a project I am making, I need to validate mathematical expresions. Think of a calculator, but a bit more complicated. I have the user input a string of characters concisting of numerals, and normal operators such as "+", "-" etc. Indenting is allowed (if this is the right word for it; I mean using "(" and ")" ), making stuff a bit more complicated.

I use the string execution function of GM to actually calculate the result, but this will of course only work if, and only if, the expression is valid. Parsing such strings is a bit harder then I thought though. Is there a simple work-around for this (probably not?), or could anyone explain to me how I can start this off?

Thanks in advance,

Anthony

[quick Question] Move Gm Window

21 September 2006 - 08:37 PM

Hey guys, just a small question this time;

I want to be able to move my window back to the place where the user wants it, or had it last time. Think of a small desktop utility/media player, that, if opened, will set itself to the proper coordinates it had last time it was closed. Is this possible, with or without a DLL? I can write a script that uses the mouse to drag the entire window, but 1) that's hardly an option, as users can use the mouse themselves in that split second; 2) I don't want to use windowed mode, meaning the user cannot use the normal bar to move the window.

Is there a way I don't know of?

Ant

Getpixel(x,y) - But Global

16 September 2006 - 03:04 PM

Hey guys,

I am looking for a way to get the RGB value of any pixel on the screen. I know that gamemaker has such a function, but it only works for the gamemaker window itself, not for the rest of the screen.

I need to acces the data in realtime, meaning I cannot 'simply' take a screenshot, and parse the BMP file for the pixel I want. As I only need a few pixels every few steps, that should be no problem.

Is there some one who can teach me how to do such a thing in C++? I have worked with C++ for the last two years, but purely console-based. I have no idea how to do such a thing in C++, despite my sarches with google. If some one could make such a dll, or teach me how to, that'd be great.

So, in short;

I want to be able to do a getpixel(x,y), with x being an int smaller then the width of the screen, and y smaller then the height. And rather then getting a '0', or not_defined, I'd like the actual value of the pixel at that cood... :(

Ant

Funny "screensaver"

18 April 2006 - 01:14 PM

Hey guys,

I bought a new pc a couple of months ago, and had to tinker a bit with it. I came accross the old windows screensaver (the one with all those colorful lines, bouncing on your screen). I thought I could do better than that, as it only has four corners, and ten lines. this one has 3 to 6 corners, 10 to 30 lines, and is much calmer than it's counterpart. Might need a good pc to run it, as I use GM's line drawing functions.

Download link:
http://rapidshare.de...saver3.exe.html

Screenshot:
http://rapidshare.de.../lines.JPG.html

Features:
- Smooth random color transitions;
- More colors than windows version;
- More lines and corners than original;
- Easier for the eyes;
- Pressing enter will give you a new configuration;
- Press escape to exit.


Note:
This is NOT a screensaver. It could be used as one with ease, and you could personalise it, but it is not at this point. If any one can proof he can make it into one, and is willing to do so, I'll release the source.

Please post any comments here... :huh:

Anthony