Jump to content


SpiderKing

Member Since 02 Dec 2005
Offline Last Active Nov 01 2009 09:55 AM

Topics I've Started

Some Array Ordering

23 July 2007 - 02:44 PM

So I have an array.. lets say its called.. points[] and it has ALOT of values. ex:
points[1]=3
points[2]=3
points[3]=6
points[4]=-9999
What i want is to make another array (order[]) that actualy sorts thouse values in following way:
points[3] has the highest value so order [3]=1...
points[1], points[2], have second highest so order[1]=2 and oreder[2]=3
(in this case when both values are the same, random one is first)
Additionaly I want all points[] that have a value of -9999 automaticaly have corresponded order[] to automaticaly have value 100000.

Enybody knows how to make this?

3 Dimensional Array

13 July 2007 - 11:17 AM

Are 3 dimensional arrays possible to do with gml?

Chess (with Ai...)

30 April 2007 - 08:40 PM

I was working on this previus summer.. but abandoned it later.. maybe Im going to continue working on it.. I will see...just remembered it might to be a good idea to post it here.

Basicaly this is a chess game in which you play as white vs a computer oponent. To make a move click your figure and click on place you wish to move it to.

DOWNLOAD: http://www.savefile.com/files/681362

Its still has lots of bugs and few things like (castling, pawn promotion, mating tehnique) are not yet done

Some bugs I noticed: knight jumps out of chessboard, pawn does illigal move, oponent refuses to move(for some resason it sometimes just "pass" the turn") and sometimes AI does a little wierd moves...

and another thing.. when you mate or get mated or game is drawn... you will usualy get an "no moves left message" .. but I guess it wont be hard to guess if that mean you won or lost :GM046:

This was my first game made with code (not D&D) so I spent many many time on it and now im interested on your opinion

Id ---> Objects

27 April 2007 - 09:44 AM

If I have an object ID, how can I know to which object (here I talk about name of that object, not which in the room it is..) it belongs to?

Standard Gm Font

21 April 2007 - 07:59 PM

Which font/font size does gm use if you dont create and set eny font?