Outline generator plugin for sprites *ALPHA 2* UPDATED

Started by AJA, Sun 13/07/2003 21:01:31

Previous topic - Next topic

AJA

WARNING! THIS IS AN ALPHA VERSION!

Okay... So, I tried my skills and made an outline generator plugin for sprites. Only one function is available: SetSprite(int sprite, int onoff, int outlinecolor, int x, int y, int generateoutline). I've included a small test game to the zip (extract the zip to the folder of AGS). These are the current requirements for sprites that can be outlined: one pixel of empty space below the sprite (and maybe also 1 px on the right, i'm not sure of this).

http://koti.mbnet.fi/dima/downloads/outlinegen.zip

-UPDATED: crash should be fixed etc -

Ferret

Very nice! I can see this being used in many future games. Slight problem with the test game, if you hover the key over the door for about 5 seconds, the games crashes with this error.

Quoteexception 0xC0000005 occured in ACWIN.EXE at EIP = 0x022D8E0B ; program pointer is +5, ACI version 2.55.561NMP, gtags (0,32)

I havn't tried the plugin in other games, so I'm not sure if this is a game or plugin error. Ah well, great work anyhow.


Scorpiorus

yeah, AJA, very nice work :D

QuoteSlight problem with the test game, if you hover the key over the door for about 5 seconds, the games crashes with this error.
btw, I noticed that too.

-Cheers

AJA

#4
Thanks! :)

QuoteSlight problem with the test game, if you hover the key over the door for about 5 seconds, the games crashes with this error.

Yeah.. I noticed it too. Tho' it didn't happen on my own computer but now it should work quite nicely. Though now I have few things to ask CJ to add to AGS... :D

edmundito

Hey, I haven't toyed with this, but if there's any way to modify fonts before they display on the screen, maybe you could make an outline generator for SCI fonts, maybe even an option to add shadows.... or just give the code to chris so he can permanently add it ;)
The Tween Module now supports AGS 3.6.0!

deltamatrix

This would be cool to acgieve the reversal spell effect from qg2. Does it work for all colours or just 16?
BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

AJA

netmonkey: Yes, that's just what I'm trying to achieve. This is just the first step. Though before the font outlining is possible CJ would have to add some nice new plugin features. ;D

deltamatrix: This plugin works in 8, 15 and 16 bit modes.

Quotethe reversal spell effect from qg2

Uh... what exactly is that?

SMF spam blocked by CleanTalk