Jump to content


Photo

Transition when restarting rooms?


  • Please log in to reply
3 replies to this topic

#1 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9259 posts
  • Version:Unknown

Posted 01 May 2011 - 07:12 AM

I've been using the fade out/fade in transition in my jam game, but just now I tried to use it to fade a room_restart() and it didn't work. I then tried using room_goto(room), but no dice. The manual doesn't say much about this.

Is it possible to set a transition when restarting the current room, or will I have to fake that with custom code?

-IMP ;) :)
  • 0

#2 MasterOfKings

MasterOfKings

    The True Master

  • GMC Member
  • 4888 posts
  • Version:GM8

Posted 01 May 2011 - 07:56 AM

I don't think GM executes a transition when restarting, as you're not actually leaving the room; you're just setting it back to its original state. I guess you could do something like have an empty room that does nothing but go to your restarted room.

So, instead of restarting; go to the empty room, that room then sends you back. Assuming the original room isn't persistent, it would of been reset; and you'll get your transition.

Doing that might cause the game to "glitch" as drawing targets change after one step (so the empty room should look like what the end of the transition looks like).


Otherwise, custom code would be the next best thing.

-MoK

PS: The first is a cheap and quick solution. It might not be the best.
  • 0

#3 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9259 posts
  • Version:Unknown

Posted 01 May 2011 - 08:29 AM

I figured. So custom code it is. Wasn't too hard, since I'm already using a custom engine for full-screen visual effects anyway :D . Thanks.

-IMP ;) :)
  • 0

#4 MasterOfKings

MasterOfKings

    The True Master

  • GMC Member
  • 4888 posts
  • Version:GM8

Posted 01 May 2011 - 08:32 AM

Anytime. :)

-MoK
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users