Avoid glitchy room transition
#1
Posted 03 March 2012 - 12:41 PM
I have this ugly bug I tried to correct but cant. I have two game levels. One room size (due to the unique style of the program) is very small. The next room is very big. That is the difference in room size between the two is very big. This makes transition between the rooms very glitchy. Like, the image of the small room stretches to the size of the big room before there is the transition. This creates a very ugly image during transition. Anyone ver experience this or I'm alone? How to correct it?
#2
Posted 03 March 2012 - 12:54 PM
Please note that transitions do not work when using 3d graphics. Also, room transitions in general do not work correctly when the sizes of the rooms (or to be more precise of the region on the screen) are not the same.
Transition effects work thus:
A screen shot is taken of the current room and the one to go to. The effect is then applied over the number of transition steps required. Thus if your views are not the same size you are likely to get distortions.
The solution is to keep sizes the same or not use transitions.
#3
Posted 03 March 2012 - 01:16 PM
There are no transition effects, just different room sizes, ain't there nothing to do about it?Room transitions generally only work well when the view sizes are the same.
Please note that transitions do not work when using 3d graphics. Also, room transitions in general do not work correctly when the sizes of the rooms (or to be more precise of the region on the screen) are not the same.
Transition effects work thus:
A screen shot is taken of the current room and the one to go to. The effect is then applied over the number of transition steps required. Thus if your views are not the same size you are likely to get distortions.
The solution is to keep sizes the same or not use transitions.
#4
Posted 03 March 2012 - 02:57 PM
#5
Posted 03 March 2012 - 03:06 PM
The problem is from small room to big room not the otherway roundget your bg room to slowly scale it self before the transition
#6
Posted 03 March 2012 - 03:24 PM
This between-room will be large like big room and it will work like this:
First you are in small room, then you go to between-room (no transition) and than
you go to big room (transition will work, because size of room will be equal)...
#7
Posted 03 March 2012 - 08:32 PM
#8
Posted 03 March 2012 - 08:36 PM
#9
Posted 03 March 2012 - 09:20 PM
You don't need to go through all that hassle. Just go through even more hassle and make a custom room transition. Download Torigara's Custom Transitions Tutorial and open Tutorial #3. It tells you how to do room transitions between a small room and a large room (and vice-versa).
Edited by SenJe0, 03 March 2012 - 09:41 PM.
#10
Posted 03 March 2012 - 10:27 PM
In that case you will need to handle the window adapting yourself.There are no transition effects, just different room sizes, ain't there nothing to do about it?
Games run in a window the area of which can be segmented into views. Views in a room do not have to match their view ports (positions in the game window). Game Maker automatically adapts these for you (rescaling as required) to the visible views at each room start.
Scaling up degrades the quality as pixels are stretched to fit the window or full screen area. There is nothing you can do about this as ultimately it is down to whatever graphics chipsets and processors the end user has.
High end and gamers cards can often handle this. Most graphics cards can scale up with ease but scaling down often requires the CPU to "lend a hand". If it is busy doing what the graphics processor can't then the frame rate is likely to drop (resulting in lag.)
If you have rooms of different sizes you can enable views in those rooms to set the actual game window area the same for all rooms and have rooms larger than the window area follow an object. That way you will avoid graphic distortions - you could also use room transition effects if you wanted.
If you really need different room sizes then look into using views - I feel sure they will go a long way to solve your problem.
#11
Posted 03 March 2012 - 10:29 PM
Now, once you have your views set up (making sure they're the same in each room), if you still have issues with the transition, let me know. And let me know what kind of transition you are using, if any.
#12
Posted 04 March 2012 - 12:44 PM
To cut a long story short, my solution works for me, and I'm fine. I tried yours, but didn't work, so gues I'll stick to mine since its perfect...thanks all....I just realized, if everything's getting stretched/shrunk, you're not using views. You MUST use views if rooms are different sizes. There's no way around it.
Now, once you have your views set up (making sure they're the same in each room), if you still have issues with the transition, let me know. And let me know what kind of transition you are using, if any.
#13
Posted 04 March 2012 - 04:30 PM
But it's not really a working solution because you just cleared out your game and nullified the transition for a split second. View gives you full control over the game, more than hiding the window would do.
#14
Posted 06 March 2012 - 02:28 PM
Yep! I agree, but both work...Does it create a blackout effect or something? I never used that command.
But it's not really a working solution because you just cleared out your game and nullified the transition for a split second. View gives you full control over the game, more than hiding the window would do.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











