Jump to content


CyberTwister

Member Since 25 Jan 2005
Offline Last Active Apr 29 2012 09:05 PM

Topics I've Started

Get_color_pixel

21 March 2008 - 01:06 AM

hi :)

So i'm trying to check each pixel of an image. It seems to work great if i separate all colors with the background color but if it's beetween 2 other colors it's not working good :
Here is my gm6 because i don't think you understand me XD :
http://s154254984.onlinehome.fr/t3.gmk

When i run it : it check all pixel of the picture (vertical line by line)
It write on a text file when a changement of color start and when it end.

But if there isn't the image background color between 2 colors, it doesn't detect well it.
Thanx a lot for any help ^_^

Edito : for peaople who can't open a gmk file, here is my main script :
repeat(width)
{
	repeat(height)
	{
	 //get the colors
	 r1=color_get_red(draw_getpixel(X,Y)); g1=color_get_green(draw_getpixel(X,Y)); b1=color_get_green(draw_getpixel(X,Y)); 
	 r2=color_get_red(draw_getpixel(X,Y+1)); g2=color_get_green(draw_getpixel(X,Y+1)); b2=color_get_green(draw_getpixel(X,Y+1));
	 Rdiff=r1-r2;Gdiff=g1-g2;Bdiff=b1-b2;
	 if (Rdiff>5 or Rdiff<-5 or Gdiff>5 or Gdiff<-5 or Bdiff>5 or Bdiff<-5)
	 {
	 score+=1;
	 col = get_hex(draw_getpixel(X,Y));
	 if (type='start'){type='end';YY=Y;}else{type='start';YY=Y+1;}
	 file_text_write_string(file,string(type)+' : '+string(X)+','+string(YY));file_text_writeln(file);
	 }
	 Y+=1;
	}
Y=0
X+=1
}

Christmas Road

28 December 2007 - 11:39 AM

Name: Christmas Road
Category: Plateform
Size: 5 MB
Changes Resolurion: No
Yoyo Games Download Page: Not avaible yet.
Direct download link : http://s154254984.on...ristmasRoad.exe

Screenshots (click to enlarge):
http://s154254984.on...asRoad_scr1.jpg
http://s154254984.on...asRoad_scr2.jpg
http://s154254984.on...asRoad_scr3.jpg

Controls:
Arrow keys and mouse (left and right clic)

About :
I have created some previous games, but it is the first time that i create also grafism... So all graphics are created by me, like all what is in the game ;-)

Run A Gm Program As Server On A Real Server

24 September 2007 - 11:52 PM

Hi :GM7:

So i'm making a little mmorpg.
I have make 1 client and 1 server.
in order to let people play to the game 24/24h, i've spend a little of money (10$ each month) to get a "professional" server. i've upload my gm server program on it, then i open it and first error : it was made with GM6 and a server have no grafic and sound card ! So i wasn't able to run it.
After some few time, i get the idea to try to rewritte it for gm5 and surprised ! Yes ! That work ! So the server seem ok, then i tryed to run the client and great ! All work great.
So i diceded to close the page of my server and let run my gm program on it, with also the program calc.exe (=the calculator of windows). But when i close this page, this seems to close also the GM program : the client can't connect. So i go on my server, and the GM program is close (it doesn't run anymore) while the calc.exe program, is always running.

The calc.exe program is just to show you that my server doesn't shutdown at any time.
The the problem is : when i exit the control page of a server, GM program is stop (while others exe can continu to run).

Someone now what's wrong pleaze ?
In the futur, we will try to rewritte the server in C or other, but not now... And i think it's interesting to understand why GM do that...

My First Sprites :d

06 June 2007 - 03:37 PM

Hi :lol:

So here is a screenshoot of a "game" wich use my 1st sprites :
http://s154254984.on...rso/screen5.jpg

Added : The most recent :
http://s154254984.on...rso/screen8.jpg

old one :
http://s154254984.on...rso/screen4.jpg
http://s154254984.on...rso/screen1.jpg
http://s154254984.on...rso/screen3.jpg

What do you think of them ?
Is that good ? Is that graphics for little children only ?
If you have any comments, thanx :huh:
(i have started only from 24h to try to draw sprites for GM...)

Where Can We Find A Good Hoster For My Gm Server ?

13 May 2007 - 05:09 PM

Hi :D

I post this message because i'm bored...
I have spend money to get a server (for 3 month), with a fix IP, ...
But the serveur doesn't have any graphic card, and it's the same for the sound !
It's the same for every server i've seen !

So The GM executable can't run on it !
(dispite that i have only 1 object for my server, with no sounds and nothing in the draw event !)

Do you know where could i find a host for my GM'server, but compatible with GM games ?
(sure, it must be a professional thing. Don't offer me your PC as host...)

Thanx a lot.