Jump to content


JimCorbett

Member Since 11 Jan 2009
Offline Last Active Sep 15 2010 07:14 AM

Posts I've Made

In Topic: Game Maker Suggestions

26 November 2009 - 01:31 PM

Thanks for the suggestion Danny,

Would this method work with a two coloured shirt for instance? or only where the shirt was one colour?

Thanks,

Jim

In Topic: Game Maker Suggestions

26 November 2009 - 07:40 AM

A useful command within the GM scripting language to change the colours within a sprite would be useful, it could take the form of:

spr_changecolour(old color,new color)

There are third party scripts to do this but they are all slow.  The function would be useful for my soccer game to change the team strips/player skin colours.

Jim

In Topic: Chara-maker V3 Open Source

24 November 2009 - 09:21 PM

Does anyone have the Zip file for this? The download link is no longer working.

Thanks,

Jim

In Topic: Alternative To The Slow Sprite_replace_color

01 March 2009 - 08:37 AM

Quick question Icuurd,

You say the colours read from the bitmap are in blue green red (BGR) order, how do I do the check when replacing colours or does it not matter?  I have my game colours (all possible colours for the kits) in an array, like below but these are in RGB:

gm_colours[0] = make_color_rgb(255,255,255) // White
gm_colours[1] = make_color_rgb(255,255,153) // Cream
gm_colours[2] = make_color_rgb(255,255,51) // Yellow
gm_colours[3] = make_color_rgb(255,102,255) // Pink
gm_colours[4] = make_color_rgb(102,255,51) // Light Green
gm_colours[5] = make_color_rgb(51,153,255) // Light Blue
gm_colours[6] = make_color_rgb(255,204,0) // Orange
gm_colours[7] = make_color_rgb(255,0,0) // Red
gm_colours[8] = make_color_rgb(153,0,0) // Dark Red
gm_colours[9] = make_color_rgb(102,51,0) // Brown
gm_colours[10] = make_color_rgb(153,51,153) // Purple
gm_colours[11] = make_color_rgb(0,0,102) // Dark Blue
gm_colours[12] = make_color_rgb(0,51,255) // Blue
gm_colours[13] = make_color_rgb(51,102,51) // Dark Green
gm_colours[14] = make_color_rgb(153,153,153) // Gray
gm_colours[15] = make_color_rgb(0,0,0) // Black

To compare do I just compare the data read from the bitmap, i.e. if dataread=gm_colours[10]?

Thanks,

Jim

In Topic: Alternative To The Slow Sprite_replace_color

27 February 2009 - 10:48 PM

Wow Icuurd, I never thought of doing that!  I will experiment over the weekend, no doubt this will be bar far the quickest solution.