Fading an object to solid black?
Is there a method of fading an active object to black, either using a change ink effect code, or something other than animation wise?
Right now I'm just using semi-transparency in front of a solid black background. Although I doubt that's the same as an actual fade to solid black, as semi-transparency just makes it fade it's alpha channels or something.
I know there is a color replace code, but that requires a redirector, as well as an alternate color to be replaced. Also not the same as fading to solid black, as well as a permanent color replacement instead of a temporary fade.
So, any advice would be helpful. :)
Re: Fading an object to solid black?
Just as frames can fade in and out, objects can.
In your active's properties, in Display Options, you have Fade in and Fade Out. Change those, when your object is destroyed or i think when you set it to invisible it will fade out how you choose.
Re: Fading an object to solid black?
Okay, here's a couple of issues I noticed with this.
I used 'fade' for the fade out, using black solid color. When the object is destroyed, I noticed it creates a square border of that selected color around the object. Is this a glitch, or is this supposed to happen? I wanted it to fade, but not create a border around it also.
I was also trying to make the object fade/darken out each time an explosion appeared. But I doubt that's doable with the objects fade out transition in the properties, right?
Re: Fading an object to solid black?
I guess animation won't work...
Re: Fading an object to solid black?
I know doing it through animation is possible, but I don't think that's where I want to go with this. X_X
Here's why:
- First of all, you are limited to the current animation being played. While the object being destroyed is creating explosions at random positions.
- Secondly, while limited to the animation, you are also limited to the color you used in the animation process. For example if i wanted to choose a different color to fade, i'd have to re-animate the fading to that color all over again. Kind of time consuming for testing purposes and things. X_X
Re: Fading an object to solid black?
It's not great but hopefully this helps -
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=130985#Post1309 85
Re: Fading an object to solid black?
I see....yes the color thing could get annoying...
My first suggestion is the way to go, I don't know why you got a border. Can you upload the file or .exe so I can see what you're doing?
Re: Fading an object to solid black?
In the properties where you choose fade-out, did you change the option "Fade to Black" to "Fade to Background?"
stephen1980
Re: Fading an object to solid black?
Nevermind, I guess I'll try using a color replacer thingie, or something.
Trying to emulate an NES style bosses death where fading is limited in colors and what not, i think. X_X
Re: Fading an object to solid black?
Upload your app so far, I'll fix it for you. Put it on mediafire or something then PM me.
Re: Fading an object to solid black?
I prefer using googlepages(haven't tried sites yet) for webspace. Hasn't failed me yet.
Re: Fading an object to solid black?
Fore file sharing www.box.net is by far the best in my opinion.
Re: Fading an object to solid black?
I've never heard of that...
I've only really seen Rapidshare which is terrible, and mediafire. Mediafire is pretty good for quick uploads but I don't think its good if you want the file up there for a long time. Especially the free version.
Ah, but you see, on that website you have to register. On Mediafire you dont have to give ANY information, just select a file, and go. It's great not having to register.
Re: Fading an object to solid black?
Well thing is, trying NOT to make my engine open source until I am really satisfied with it. I have done lot of work on it, and still working on a few things with it.
But I suppose what I have for right now is fine. Though I suppose I can cut out, and paste in a new app only part of the game I had the question for. X_X
EDIT: Here is the fade example I have. It also has the black border issue I was talking about.
http://www.megaupload.com/?d=2VFY6HYI
Re: Fading an object to solid black?
Shoulda used mediafire, no wait for the download...
Just teasing ya!
Well I'll take a look at it.
EDIT: Well it looks like its a problem with your active.
Try doing the same events you had for Mini Boss, and replace it with a default active. Do not change any of the settings, just an MMF2 active as it comes. Should work fine. I'm trying to figure out why though...
Your transparent color is a teal. Why? Well there's your problem... You need to redo your actives or find a way to change the transparent color. I believe it's supposed to be black.
Re: Fading an object to solid black?
Umm..... MMF2 as the option of selecting the transparent color when importing from sprite sheets, right? So why not? Does it cause lots of bugs to use that feature?
Of all the other game making engines I have used, seems like the default was either pink (R:255,G:0,B:255), white, or black, while having the option to use a different color of choice. So if it has that option, why not go ahead and use it when I can?
But in any case, since using the fade out option in the object properties apparently does not play the 'destroy' animation, I don't think I'm going to use that anyway.
So, I think it's either use semi-transparency over a black bg, or replace color will probably do. Just that one guys fade example of using 3 objects just for fade seems a bit farfetched, or unorthadox.
Re: Fading an object to solid black?
You know how easily you could do this?
On event you want it to destroy, set the animation sequence to disappearing, and destroy. that's it.
Yes that is a little far fetched. For the semitransparency, I assume you're going to make an active shaped exactly like your MiniBoss but just a silhouette (only black), following behind your MiniBoss?