Author Topic: FadeIn/FadeOut Transitions  (Read 1182 times)

0 Members and 1 Guest are viewing this topic.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: FadeIn/FadeOut Transitions
« Reply #15 on: May 07, 2012, 01:46:59 PM »
So the imagebox is... the entire image?

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: FadeIn/FadeOut Transitions
« Reply #16 on: May 07, 2012, 01:50:10 PM »
Yeah, it would go from the actual game to that image...

I don't know how to get rid of the ok sign though, might have something to do with 512?

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: FadeIn/FadeOut Transitions
« Reply #17 on: May 07, 2012, 01:54:49 PM »
I think 512 is resolution, though I don't really know :P

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: FadeIn/FadeOut Transitions
« Reply #18 on: May 07, 2012, 01:59:27 PM »
Your code won't work.


What you have causes 100 image boxes to be displayed onscreen 60 times a second, lasting a total of 1/60th of a second.

What you need is 1 image box to be displayed onscreen 60 times per second, lasting a few seconds. :>

My previous vignette examples should show you how to create the effect you want.  You'd just use the ImageBox command instead of the SetVignetteAlpha command..

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: FadeIn/FadeOut Transitions
« Reply #19 on: May 07, 2012, 02:05:26 PM »
Well the last part Transition-(imageview) relates to the lang.scv file

and okay annikk, i'll have a play around...

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: FadeIn/FadeOut Transitions
« Reply #20 on: May 07, 2012, 02:55:05 PM »
It's pointless to do it with imagebox because you have to click ok to continue... whch I don't want, I'll just have to live with it

tried doing

      DrawSprite("1", 0,0, 0,0,0,100, 1000)

but nothing happens

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: FadeIn/FadeOut Transitions
« Reply #21 on: May 07, 2012, 03:15:20 PM »
If nothing happens I guess that's good?

And the text in the DrawSprite you have there is supposed to be a number, change "1" to 1 and the colors range from 0-1, so having 100 won't help it :)

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: FadeIn/FadeOut Transitions
« Reply #22 on: May 07, 2012, 03:34:13 PM »
oh so the alpha is only 0-1 oh haha

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: FadeIn/FadeOut Transitions
« Reply #23 on: May 07, 2012, 03:36:28 PM »
Is this right?

Code: [Select]
DrawSprite(1, 0,0, 255,255,255,1, 1000)
Still doesn't work though?

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1,794
Re: FadeIn/FadeOut Transitions
« Reply #24 on: May 08, 2012, 10:24:21 AM »
It does work, but it can't go inside function LevelSetup or function LevelLogic.  It can go inside either function ScreenDraw or function LevelDraw
I think those functions aren't available on the ipad version at the moment.. :/

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 1
  • -Receive: 20
  • Posts: 1,483
  • They'll eat you next!
  • Eufloria: Yes
Re: FadeIn/FadeOut Transitions
« Reply #25 on: May 08, 2012, 02:02:13 PM »
It can actually be in LevelLogic and draw on screen... That's PC version though...

Tomfloria

  • Shrub
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 232
  • First iOS modder :D
Re: FadeIn/FadeOut Transitions
« Reply #26 on: May 08, 2012, 04:27:18 PM »
It still doesn't work anyway...

It will just be an iPad Limitation...