Jump to content


Photo

-d41's Room Transitions- 1.0


  • This topic is locked This topic is locked
21 replies to this topic

#1 d41

d41

    GMC Member

  • New Member
  • 526 posts

Posted 01 May 2007 - 04:07 AM

d41's Room Transitions



This extension includes 11 extra room transitions. To use them, just set the variable "transition_kind" to the transition you want. Read the help file included in this extension for more information.

Here are the names of all the transitions so far:

Circles
Earthquake
Flash
Grid
Rotate Clockwise
Rotate Counterclockwise
Scale Down
Scale Up
Split
Whiteout
Zoom


Download d41's Room Transitions

Please post any bugs/glitches/comments/suggestions or ideas for new transitions. Thanks for looking.

Edited by d41, 01 May 2007 - 04:09 AM.

  • 0

#2 werewolf688

werewolf688

    Real Werewolf

  • New Member
  • 151 posts

Posted 02 May 2007 - 10:53 PM

No bugs. Try glass shatter. Can you tell me how to make transitions?
  • 0

#3 d41

d41

    GMC Member

  • New Member
  • 526 posts

Posted 03 May 2007 - 01:39 AM

No bugs. Try glass shatter. Can you tell me how to make transitions?


Thanks.
Glass shattering is a good idea, I will try that.

As for making transitions, just read the manual.

The Game Maker Language (GML) -> Game play -> Rooms

transition_define(kind,name) You can actually create your own transitions. To this end you must define a script (possibly in an extension package) to do the transition. With this function you can then add the transition to the system. kind is the index of the transition (either a new one or an existing transitions). name is the name of the script. Note that the name of the script is a string! So there must be quotes around it. Note that this is really advanced stuff. The script must take five arguments: a surface with the image of the previous room, a surface with the image of the next room, the width of the surfaces, the height of the surfaces, and the fraction of the transition (between 0 and 1). It must then draw the image using the two surfaces.


Tell me if you need a better explanation and/or an example.
  • 0

#4 werewolf688

werewolf688

    Real Werewolf

  • New Member
  • 151 posts

Posted 03 May 2007 - 11:30 PM

Can I have an example?
  • 0

#5 d41

d41

    GMC Member

  • New Member
  • 526 posts

Posted 04 May 2007 - 01:47 AM

Can I have an example?

<{POST_SNAPBACK}>

Sure.
Here is the code for the rotate counterclockwise transition:
draw_surface(argument1,0,0);
draw_surface_ext(argument0,0,0,1,1,argument4*91,c_white,1);

argument0 is the image of the previous room, on a surface. Basically, you can draw it using draw_surface or draw_surface_ext. You can also manipulate the surface, etc. For more info, see "Surfaces" in the GM Manual.

argument1 is the image of the next room, on a surface

argument2 is the width of the images.

argument3 is the height of the images.

argument4 is how far done the transition is. 0 is when it just starts, 0.5 is halfway through, and 1 is completely done.

With this information, the script must draw the transition. It is like a draw event, called every step until the transition is over. To find out how far done the transition is, use argument4.


Now, to use that script up there that draws the image as a transition, put that code up there into a script named "scr_rcc". Then, somewhere else, use the code
transition_define(50,"scr_rcc")
(Only once!)

Then when you want to do the room transition:
transition_kind=50;
room_goto_next();

  • 1

#6 werewolf688

werewolf688

    Real Werewolf

  • New Member
  • 151 posts

Posted 04 May 2007 - 10:46 AM

cool!thanks!
  • 0

#7 Jax

Jax

    GMC Member

  • New Member
  • 232 posts

Posted 11 May 2007 - 02:12 AM

brilliant! This is awsome! I love the zoom one. Your example that you made for werewolf668 is very imformative, and your translations are very professional. Keep up the good work! (if I could rate it would be a 10/10 for you)
  • 0

#8 d41

d41

    GMC Member

  • New Member
  • 526 posts

Posted 25 May 2007 - 12:58 AM

cool!thanks!

<{POST_SNAPBACK}>

You're welcome

brilliant!  This is awsome!  I love the zoom one.  Your example that you made for werewolf668 is very imformative, and your translations are very professional.  Keep up the good work!  (if I could rate it would be a 10/10 for you)

<{POST_SNAPBACK}>

Thanks. Any ideas for more transitions?
  • 0

#9 werewolf688

werewolf688

    Real Werewolf

  • New Member
  • 151 posts

Posted 05 June 2007 - 12:51 AM

How about ripping in half? Like paper?

Edited by werewolf688, 05 June 2007 - 12:52 AM.

  • 0

#10 zfan122

zfan122

    GMC Member

  • New Member
  • 780 posts

Posted 06 January 2008 - 06:37 PM

How about ripping in half?  Like paper?

<{POST_SNAPBACK}>

That'd be perfect for a paper mario game! What about lightning? Lightning zapps accross the screen then moves to the next room. Kuni throw(perfect for naruto exct games) Similar to shatter but goes like this
1: Hand throws kuni at room
2: Glass shatter effect falls like a broken window.
Hey don't knock it till you try it.
  • 0

#11 ChaosKnighT

ChaosKnighT

    GMC Member

  • New Member
  • 342 posts

Posted 26 May 2008 - 09:22 PM

You mean kunai? Actually I think that will be a bit too specific for what d14 had in mind, and may put non-naruto fans off. :rolleyes:

By the way, the flash transition could give people epilepsy seizures :( I like flashes to immediately appear, then fade off.

Edited by ChaosKnighT, 26 May 2008 - 09:24 PM.

  • 0

#12 Brandan

Brandan

    GMC Member

  • New Member
  • 82 posts

Posted 02 July 2008 - 04:01 PM

dt_rotateclockwise,dt_rotatecounter,dt_scaledown,d
t_scaleup,dt_split,dt_whiteout,dt_zoom);

at position 24: Unknown variable dt_circles

___________________________________________
ERROR in
action number 1
of Key Press Event for <Space> Key
for object control:

Error in code at line 1:
transition_kind=choose(dt_circles,dt_earthquake,dt
_flash,dt_grid,dt_rotateclockwise,dt_rotatecounter,
dt_scaledown,dt_scaleup,dt_split,dt_whiteout,dt_zoo
m);

at position 24: Unknown variable dt_circles


thats the error i got i had the extention installed to use
what do i do your example looks so good i just to use then i get a error makes me so sad :P
  • 0

#13 d41

d41

    GMC Member

  • New Member
  • 526 posts

Posted 03 July 2008 - 03:06 AM

From the error messages, it looks like you forgot to install the extension.
This is how you install an extension. http://gmc.yoyogames...howtopic=280300
After you install the extension, try running example.gmk which came with the extension in the zip file.

If that doesn't work, please answer these questions so I can help you more.

Did you add the extension to your game?
What code were you using to use the extension?
Did you read the help file for the extension and follow the instructions for using it?

Try running the example that came with the extension.
  • 0

#14 Mack151

Mack151

    GMC Member

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

Posted 18 July 2008 - 12:26 AM

Is it possible to do a page flip effect? I need that for a game I'm working on.

Some other ideas:
  • one that shows a sprite (defined by the user) zoom in to cover the screen, then zoom back out to show the new room behind it, kind of like in old superhero cartoons
  • that one effect in cartoons where the entire screen is black except for a growing/shrinking shape (define by the user) that focuses on an object of the user's choice

edit: also, the circles and grid transitions don't work for me. The game just pauses for a bit, then cuts to the next room without any transition.

Edited by Mack151, 18 July 2008 - 01:07 AM.

  • 0

You opened the mailbox.
Nothing was in it.
Nothing after nothing came bursting out of the mailbox.


#15 Miniwig

Miniwig

    GMC Member

  • New Member
  • 75 posts

Posted 18 October 2008 - 01:13 AM

Good extension, my friend and I will probably end up using the circles one in our game, unless we mess with it a bunch as we often do. I think it'd be cool to add some variables to change the shapes used, zoom amount, alpha values etc...
  • 0
18 year old power/prog guitarist.
http://www.myspace/matthodsdon

#16 Erotica

Erotica

    GMC Member

  • New Member
  • 37 posts

Posted 20 May 2010 - 09:46 PM

<span style='font-size:21pt;line-height:100%'>

d41's Room Transitions

</span>

This extension includes 11 extra room transitions. To use them, just set the variable "transition_kind" to the transition you want. Read the help file included in this extension for more information.

Here are the names of all the transitions so far:

Circles
Earthquake
Flash
Grid
Rotate Clockwise
Rotate Counterclockwise
Scale Down
Scale Up
Split
Whiteout
Zoom


Download d41's Room Transitions

Please post any bugs/glitches/comments/suggestions or ideas for new transitions. Thanks for looking.


Thanks for that! The whiteout I've been looking for, for days!! It could have spared me soo much time, and wrong programming if I knew you'd made this ;) thanks a lot ^^
  • 0

#17 Nubcake

Nubcake

    Nubcake

  • GMC Member
  • 1320 posts
  • Version:Unknown

Posted 17 July 2010 - 05:47 PM

What is wrong with this extension ? It doesnt seem to work whenever i open the gmk and try to install it it gives me an error:

Cannot Find extension package d41's Room transitions./Error while trying to install extension

Edited by Nubcake, 17 July 2010 - 05:53 PM.

  • 0
Nubcake ~ Former GM'er '10 ~

#18 YoshieMaster

YoshieMaster

    GMC Member

  • New Member
  • 12 posts

Posted 29 August 2010 - 08:41 AM

I probably wont download and use this, but thanks heaps for the tutorial/instructions on how to create a transition. Very helpful!
  • 0

#19 nusaik

nusaik

    GMC Member

  • New Member
  • 5 posts

Posted 17 September 2010 - 08:14 PM

The dowload link doesn't work anymore. Is there any place I can still get this? Because I used it before and I liked it, and now some of my games depend on it.
  • 0

#20 RTII

RTII

    RT

  • New Member
  • 402 posts

Posted 18 September 2010 - 09:07 AM

The dowload link doesn't work anymore. Is there any place I can still get this? Because I used it before and I liked it, and now some of my games depend on it.

I still have it. If the owner agrees, I could upload it.
EDIT: Lets hope the owner accepts this, but here it is:
Posted Image

Great extension btw, really like it.

Edited by RobinT, 18 September 2010 - 09:19 AM.

  • 0
Posted Image Posted Image Posted Image
My Games | RT-dev | RTII forum | Fight My Brute | Grayscale Corporation Forum
Please read and follow the closed, or your account may be Signature Rules.

#21 RabbyC

RabbyC

    GMC Member

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

Posted 07 March 2013 - 07:38 PM

Hi Im getting a funny bug using the extension in studio v1.1.844:

BUG: Room transitions don't function well - setting to 0 - look at Variable_BuiltIn.cpp SV_TransitionKind() .

I have only got 2 rooms with slightly different tile arrangements and 1 object with this code on alarm[0] which is activated after 5 seconds:

transition_kind = dt_circles;
room_goto_next();

Does this mean anything to anyone?
  • 0

#22 cuedaninja

cuedaninja

    GMC Member

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

Posted 20 October 2014 - 07:08 PM

Thanks for posting, thread is kinda old so I hope they still work.


  • 0

EN4a09N.png

Now Available! Now On Android/Google Play App Market!

Coming Soon To Apple/iTunes and other Mobile Game App Stores!