Jump to content


Photo

Flip room transition


  • Please log in to reply
1 reply to this topic

#1 Edge Ryder

Edge Ryder

    GMC Member

  • New Member
  • 3 posts

Posted 07 May 2012 - 10:17 AM

A room transition script that flips the room horizontally like this
___''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''___
|__| -> <| -> |> -> |__|
so it looks like a piece of paper being rotated would be really useful!

If anyone has or can/wants to make a script that does this please put a link in the comments. I am sure other people would find this useful. Or there may already be one...
  • 0

#2 Jack Indie Box

Jack Indie Box

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:GM:Studio

Posted 07 May 2012 - 10:30 AM

scrn=sprite_create_from_screen
then
draw_sprite_ext //using the new sprite scrn

either draw that sprite straight to the screen, manipulating image_xscale from 1 to -1
or draw it to a surface(not in draw event) and manipulate it how ever you see fit and then draw it in the draw event

i would have a white or black or textured background behind the flipping screen else it will look bad. also you will most likely want to "pause"/"feeze"/"deative" or destroy all objects other than the one doing this(after you have done sprite_create_from_screen)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users