Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Transition in 800x600 resolution

I've tried this script by Selwyn -> http://www.rmxp.org/forums/showthread.php?t=4203

The script works nicely. The game is now at 800x600 resolution. I also have implemented the Plane hidden class that is also created by Selwyn. However, one thing that is still not 800x600 is the transition. I've resize the transition graphic, but the result is still the same, so I think it has to do with Graphic class maybe? Anybody know how to solve this? I mean, it doesn't really look nice since it only transit 640 x 480 area of the screen and the rest of the area were changed instantly :/

Thanks you in advance :)
 
hima;320770 said:
I've tried this script by Selwyn -> http://www.rmxp.org/forums/showthread.php?t=4203

The script works nicely. The game is now at 800x600 resolution. I also have implemented the Plane hidden class that is also created by Selwyn. However, one thing that is still not 800x600 is the transition. I've resize the transition graphic, but the result is still the same, so I think it has to do with Graphic class maybe? Anybody know how to solve this? I mean, it doesn't really look nice since it only transit 640 x 480 area of the screen and the rest of the area were changed instantly :/

Thanks you in advance :)


I'm pretty sure that the max transition size is only 640x480...might be wrong....but you're saying that the screen itself is 800x600 and the screen inside of it is smaller right? problem with it being in the upper left corner maybe?

just wondering, because I had/have the same problem also.
 

arev

Sponsor

Not much we can do about it, hima. Even if someone would rewrite the Graphics class I think it would lag so much it would be useless.
What you can do to get rid of the current transition is adding a
Code:
(0)
after every Graphics.transition. By default it's set to 20, so with 0 the screen will switch immediatly. This means no transitions between maps and battles, but there are other ways to do something like that (i.e. changing screen tone).
 
@ BlackHearted
I did. But the engine seems to limit the transition to 640 x 480 anyway

@arevulopapo
Thanks! This kinda sucks :'( I mean, I was hoping that 800x600 would work, and it would be so much better for my game if it does. Just when you thought every thing's going your way... Oh well, I'll just stick to 640x480 then :)
 

arev

Sponsor

No, don't! :D Unless those transitions are really important to yor game you can replace them with something else. For example: changing maps without transitions looks rather strange, too fast, 'n' stuff. So before every teleport I've placed a common event, that darkens the screen in 4 frames. After moving to a new map, the screen gets back to normal. Looks different to normal transitions, but still pretty decent, imo. :)
 
Actually, I am working on several Resolution packs, and the Graphics.transition is something I am working on... (and Graphics is a module, not a class).

What I am working on is taking a screenshot every time Graphics.transition is called.

Then, Graphics.transition needs to build a second bitmap of what is coming up, which I am not sure how to do. I can do it, but it would be terrible slow.Getting the first bitmap is easy, but the second is harder. Once you get both the bitmaps, from here it's just a matter of making them transition in either a change in opacity or alpha channels if you use a transition file.

What I might have to do is take a screenshot, when Graphics.transition is called, memorize that it needs to make a transition, then wait a frame, take another screenshot, only to immediately make it have a 0 opacity. Then call a hidden transition method. It will be crude, and not as fast as the original method because now it will be done in Ruby, but it should work.
 

arev

Sponsor

Nice idea. Something to start with :) Wouldn't it work with grabbing just the first image - before transition? Then display it on top, change map, and then just fade the picture away? no need to take a picture of the upcoming screen since it's already there, I think. Also, merging it into teleport command, or call batlle instead of the Graphics module ;) could be more efficient.
 
@arevulopapo
I tried your idea. It works!! Yayyyh! XD Now I have to try whether this works with encrypted project :S Or maybe that can be solved easily by delete the screenshot write after the transition is complete.

@SephirothSpawn
How can you make a transition by using alpha channels? Which method should I use?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top