Any way to change room transition speed?
Posted 07 February 2012 - 08:24 AM
Does anyone know of a way to change this? Even if it means mucking around with a hex editor, I would really like to be able to set the room transition speed to 60fps so my room transition script can run the way it's meant to. Halving transition_steps makes the transition finish in the right amount of time, but the movement is less fluid. I want my transition to finish in the right amount of time with the fluid motion that I programmed into it.
Thanks if you can help.
Posted 07 February 2012 - 08:35 AM
EDIT: Damn, you're not a noob I could get cheap reputation from by helping.
I'm fairly sure Game Maker uses a set time for its transitions, so if you want more frames per transition step, you can't use the built-in function.
- Take a surface screenshot of the current room
- Turn OFF automatic drawing with set_automatic_draw()
- Go to the next room
- Take a surface screenshot of the new room
- Run your transition script (and update the screen manually!) 60 times and sleep() 1/60 second between each time.
- Turn on automatic drawing again
- Free the two surfaces
Edited by Yal, 07 February 2012 - 08:39 AM.
Posted 23 February 2012 - 03:30 AM
transition_step = 80
But I have a correction: The larger value has transition_step, the longer is the transition. I managed to get a nice effect turning the transition_step to 300.
I leave the rest to the transition's behavior.
Edited by Tennx, 23 February 2012 - 03:32 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users