DelphiX - changing Pallette colors for individual graphics

Started by
2 comments, last by wrfstudios 20 years, 11 months ago
Im making a isometric game simliar to rollercoaster tycoon. Im not sure how they change the colors on each of the rides - But since you can make the rides ANY color - im sure they didnt create each piece of the ride in every color imaginable. I think they change the pallette for each image to allow the user to select whatever color they want for each piece of the ride. Has anyone ever done this in delphix? If so... how is it done? Thanks Bill
Last Half of Darkness Developerhttp://www.lasthalfofdarkness.com
Advertisement
Hi, its probably just changing the rgb of a sprite that is drawn, that would be my guess.

Bobby
Bobby BakerOmega Componentshttp://66.139.78.148/ds/
Yeah- thats kinda what I figured too - but I can''t seem to find the command to do that exactly.

Does anyone know the exact syntax to change the pallette of an image?

to display im using...

Imagelist.Items[3].Draw(DXDraw.Surface, X,Y, 0);


How would I go about changing the pallette for that particular image (imagelist.items[3])

Thanks
Last Half of Darkness Developerhttp://www.lasthalfofdarkness.com
Hi, I havent used DelphiX for a long time, but isnt there a special draw command? Like DrawEX() or somehting like that that gives you more options?

Bobby
Bobby BakerOmega Componentshttp://66.139.78.148/ds/

This topic is closed to new replies.

Advertisement