GM lite, c_white and 64digits collective knowledge

Posted by Pirate-rob on Aug. 16, 2012, 9:05 a.m.

While programming my game I have come into a problem that I hope will be solved by the collective programming knowledge of 64digits. Or in other words I need help.

Now as you have guessed I have GM lite. Now this isn't so bad but I have finally found a pro function I need to make a game. I need to be able to tint sprites. However all sprite tinting via draw_sprite methods is only available in pro edition. I tried using draw_sprite_ext as it is no a pro edition method and it allows tinting. But you are only allowed to have the variable c_white in the colour argument.

However I have found I can draw shapes of different colours and alphas. However if I just draw a square of slightly transparent colour over my sprite then I will get and overlapping of tinting on other sprites. But if I program a set of coloured shapes that match my sprites shape then I will have to do it for every sprite.

I cannot see any way to fix my problem, so I was wondering if anyone here knew how to?

Comments

Pirate-rob 12 years, 4 months ago

I would do that but I need to adjust the color via an RGB value :P

flashback 12 years, 4 months ago

Quote:
But Flash is so much more expensive than GM. :(
Again, check out FlashDevelop. It's both all-code and free.

firestormx 12 years, 4 months ago

Well excuuuuse me if I go around posting comments without actually reading what I'm responding to. Hmph.

poultry 12 years, 4 months ago

Quote:
Flash

lol guys, you all know how to make me laugh

BP Scraps 12 years, 4 months ago

FlashPunk.

That is all.

ludamad 12 years, 4 months ago

While I liked programming for Flash, it's a bit of a dying, single vendor platform.

sirxemic 12 years, 4 months ago

HTML5

JuurianChi 12 years, 4 months ago

I win.

Astryl 12 years, 4 months ago

Quote:

HTML5

But HTML 5 has Downs syndrome… Try again.

You can use RGB by using make_color_rgb(). Of course, to tint the sprite while taking alpha into account, you'd need to have access to the set_blend_ext() function, with SRC_ALPHA and ONE_MINUS_SOURCE_ALPHA (or their equivalents in the GM docs) as arguments.

Long term solution: make overlays. I've done that for that old Megaman fan game I made in order to get the color swapping to look right (two overlays for the two armor segments).

Longer term solution depending on your income: open an FNB account, save up the money and buy a GM8.1 license.

Juju 12 years, 4 months ago

Flash? Who the hell uses Flash any more? There's a damn good reason all the mobile platforms have now totally abandoned any hope of fully implementing it.