The Daily Click ::. Forums ::. Klik Coding Help ::. Fading active object glitch
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
14th September, 2013 at 14/09/2013 11:53:05 -

I have two separate active objects which both behave the same way. You collide with one, it expands while an animation plays, then it destroys.

I have both of these active objects set to fade out when they're destroyed. The first active does this perfectly. The other Active object I tried this with does it, but when it starts to fade out, the transparent area around it turns white. Both are set up the same way, as far as I can see... ie both are set to "background" under the fade options.

Do you have any ideas why only one of them works?

 
Image

Tell 'em Babs is 'ere...

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
14th September, 2013 at 14/09/2013 13:44:32 -

What's the process you use for fading the object?

I'm completely unfamiliar with the iOS extensions, but are you using one to change transparency of the object somehow?

I've been able to fade and rotate objects without a problem. Maybe my "infinite jumping" example may be helpful here?

http://create-games.com/download.asp?id=8714

Look at the event structure for the bonus displays. They appear, then vanish. I use the Compatibility Effects event, or something like that. I'm not at my typical computer at the moment or I could explicitly explain it.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
14th September, 2013 at 14/09/2013 14:58:21 -

Thanks smr, this will be useful to look at for fading moving objects! I'm actually doing this in the most basic way, my event is set up like this:

Player collides with Active
-Destroy Active

Simple as that. I went into the Active objects properties and told it to fade in/out from there. It works as I would expect it to. But then I have an other object with the same event and method of fading, but the transparant area is filled with white.

This one works:
Image

This one doesn't:
Image

Apologies for the bad screenshots, I hope it shows you what I mean though. It's like there's an issue with the alpha channels or something. I've checked the alpha channels for both objects, but neither of them have them.


Edit: Okay, I noticed that the coin fades in fine, but doesn't fade out correctly. I checked the last frame in it's animation and it does actually have alpha data stored. I tried deleting it, and can't see any white area in the graphic, yet it still turns the transparent area to white when fading out. (This doesn't happen when simply viewing that frame of it's animation when it loops through them)

I believe I must have saved a faint white layer over the graphic when exporting from Photoshop. Must I go and re-export from Photoshop? It doesn't look like MMF wants to erase this data for me. (Assuming this is the problem)

Edited by -Liam-

 
Image

Tell 'em Babs is 'ere...

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
14th September, 2013 at 14/09/2013 17:05:34 -

Try removing the alpha channel completely.

There is a way to do it from the animation editor. There should be a radio button somewhere that let's you change from having an alpha channel to regular transparency.

You should be doing this for all the graphics that don't use alpha channels anyway since they take more graphics memory and sometimes lead to slow downs, esp with the Android runtime.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
14th September, 2013 at 14/09/2013 21:14:39 -

Thanks UrbanMonk, I've been trying this a few times, trying the various alpha "colours" and switching back to the standard mode, removing the alpha channels, but still the same problem! I really don't know why/how MMF is holding onto this data. Looks like I'm going to have to get back to my Photoshop machine and re-export the graphic.

 
Image

Tell 'em Babs is 'ere...
   

Post Reply



 



Advertisement

Worth A Click