Can I Get Some Explanation About Plane ?

● ARCHIVED · READ-ONLY
Started by BoluBolu 5 posts View original ↗
  1. The title does say what I need help for.. Basically I don't know Plane class in RGSS3 used for, so any help about explaining it would be very appreciated, help this noob scripter please :)
    I actually found this
     

    def create_parallax @parallax = Plane.new(@viewport1) @parallax.z = -100 endI suppose Plane used to load a picture or bitmap, something like Sprite class? But has different behaviour, like moving image or something? I can't learn it from the default editor because when I CTRL + SHIFT +F , the method above is the only one method that created Plane and that is not explain it well enough. I mean is,
    1. What is Plane?
    2. When can I create it or where it can be created?
    3. Is there a restriction to create it or specific condition so it can be create, need a special picture image?
    4. Or does it act like Sprite class?

    Okay that's to many question, I'm sorry, but again my lust of knowledge is killing me.. -__- Just ignore this if you don't want to help :)
    Alright thanks all. Peace.

    P.S: I've searched for video on youtube and google but I found nothing.
     
  2. I had to learn a bit about them when I converted the XP fog script to Ace.


    The help file says this:

    Planes are special sprites that tile bitmap patterns across the entire screen and are used to display parallax backgrounds and so on.
    So yes, similar to the sprite class. You have to give it a bitmap in order for it to show something. It tiles the bitmap, so if the image is smaller than your screen, you'll see it repeated. If you move around the map you will not see the edge of your plane because it tiles automatically (hopefully seamlessly).


    You got part way there. You found out where it was used. Now search the rest of that script for @parallax and see what it does with it. It will refer you back to Game_Map to get some properties to use to update it, which should fill in the blanks a little.


    Did you also take a look at the help file? F1 in the editor, go to the Search tab and search for Plane. It'll give you a bit of a description as well as its properties and methods.


    Take a look at my Multi Fog script to see how I used planes and combined what Ace does with them, with what XP did with the fogs.
  3. A plane is similar to a wallpaper on a wall. The pattern (the bitmap) is repeatedly drawn to cover the wall (the viewport or screen). A Sprite's bitmap is only drawn once (like a framed picture).


    That's why planes used for map parallax backgrounds.
  4. Ah that's great, thanks both of you, I've got more clarity now.
    Okay this can be closed now.
  5. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.