Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 5 posts ] 
    Dahrkael
  Wed Sep 09, 2009 10:34 am
VOC@LOID #01
User avatar
Member


Location: SPain :D
Hi :3
I'll explain how to make "fades" in an easy way, ill use a 640x480 resolution.

first you need a scene system like this:
viewtopic.php?f=191&t=67246

then we will make a scene called Transition with this content:

Expand to see the code.


If you see the code you will know that the fade is really a black image which is increasing (or decreasing) its opacity.
Fades are normally short, because while the fade is processing, the update is running and can origin problems =)

The correct use is: $scene = Transition.new(next_scene, type_of_fade)
$scene = Transition.new(Porn_Room.new, :in/:out)

_________________
You prefer 2D
Content Hidden

or 3D?
Content Hidden


Top Top
Profile      
 

    Amy
  Wed Sep 09, 2009 10:40 pm
User avatar
Staff

Big Dumb Guy
Something sortof related but not related, am I right in thinking we don't have to dispose things in Gosu?

draw_quad for example, it draws the quad but then will disappear on the next frame unless it's drawn again, right?


Top Top
Profile      
 

    Dahrkael
  Wed Sep 09, 2009 10:53 pm
VOC@LOID #01
User avatar
Member


Location: SPain :D
Gosu images are not like RGSS Sprites.

If you know, RGSS have two types of images, bitmaps and sprites.

Bitmaps need a rect to be showed. Gosu makes Bitmaps with its own rect to be showed, so dont need to dispose nothing =)

_________________
You prefer 2D
Content Hidden

or 3D?
Content Hidden


Top Top
Profile      
 

    e
  Thu Sep 10, 2009 5:09 am
shittybutt
User avatar



Location: Berlin
But yes, from experience, if you don't draw it on every tick it WILL disappear. Or maybe I'm doing it wrong? If I don't redraw images, they disappear; now I haven't tried using the Window's draw_quad or draw_line method; do these stay until painted over?


Top Top
Profile      
 

    Dahrkael
  Thu Sep 10, 2009 11:42 am
VOC@LOID #01
User avatar
Member


Location: SPain :D
Gosu includes at the beginning of all frames something like

"self.contents.clear" so you need to redraw all the things you want in the screen.

_________________
You prefer 2D
Content Hidden

or 3D?
Content Hidden


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group