Author Topic: [XP] Window_Advanced movement and more  (Read 12645 times)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
[XP] Window_Advanced movement and more
« on: July 05, 2009, 04:34:26 AM »
Window_Advanced
Authors: Ryex
Version: 2.05
Type: Graphical Enhancement
Key Term: Scripting Tool

Introduction

This is a base class like Window_Base, it contains methods for opening/closing windows with animation, as well as animated movement and resizing.


Features

  • Opening/Closing window animations
  • Two different movement algorithms
  • Two different resizing algorithms
  • Very easy to use
  • Animated cursor movement


Screenshots

http://www.youtube.com/watch?v=4sGvUk6uxL8


Demo

NA


Script


(click to show/hide)


(click to show/hide)


Instructions

(click to show/hide)

(click to show/hide)


Compatibility

should work with anything

Credits and Thanks

  • Ryex
  • WcW

Author's Notes

this class contain none of Window_Base's drawing methods so if you want them include them in you sub class

I made this... well... because I wanted to. it will make making any animated system easier
« Last Edit: November 26, 2010, 02:54:18 AM by Ryexander »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Seox

  • Ethereal Devastator
  • ****
  • Posts: 332
  • LV: 25
  • Gender: Male
  • REVOLVER OCELOT ARE AWESOME. O_O
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #1 on: July 05, 2009, 05:44:04 AM »
O_O

Will DEFINITELY look into this. Looks VERY promising. Thanks, Ryex, and congrats on another great job!

*powers up*
... (<<<<<<<<<<<<<<< TEH DOTS OF DOOM. Hey, kinda catchy. :naughty:)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #2 on: July 05, 2009, 06:16:18 AM »
now i just need to make Window_Advanced_Selectable
it will be a sub class of Window_Advanced_Base but it will have both vertical and horizontal ANIMATED scrolling and looping.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #3 on: July 05, 2009, 06:47:02 AM »
Very nice I will most likely end up using this *lv's up*

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Window_Advanced_Base movement and more
« Reply #4 on: July 05, 2009, 12:13:41 PM »
Wouldn't it be better if you included those methods in Window_Base instead of making a new class?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #5 on: July 05, 2009, 04:38:52 PM »
I tried but the opening stuff would not work and window select had problems, this was just easier
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #6 on: July 05, 2009, 05:59:50 PM »
maybe you could at least change the name of the class to
Window_ABase so its faster to type...

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2223
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: [XP] Window_Advanced_Base movement and more
« Reply #7 on: July 05, 2009, 08:42:40 PM »
GG has a point, helps the lazy folk :rolleyes:

Oh, and very good job on this one Ryex, you kinda beat me to it. I'm gonna try this soon. *powers up*
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #8 on: July 05, 2009, 09:01:04 PM »
fantasist its now levels

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Window_Advanced_Base movement and more
« Reply #9 on: July 05, 2009, 09:02:15 PM »
maybe you could at least change the name of the class to
Window_ABase so its faster to type...

"What is ABase supposed to be mean? Is that a typing mistake or what?!" is the first thing I would think if I saw "ABase". Window_Advanced would have probably been enough, but Window_AdvancedBase is fine, too.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #10 on: July 05, 2009, 09:02:46 PM »
A = advanced
thats why ABase would be fine for me

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Window_Advanced_Base movement and more
« Reply #11 on: July 05, 2009, 09:04:08 PM »
"Oh, my bad. Of course. It's 'Advanced' and not any of the other 10000 english words starting with A. How dumb of me."

Seriously, man.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #12 on: July 05, 2009, 09:05:25 PM »
fine well I'll just be lazy and keep it ABase for my lazyness >_> maybe AdvBase? I dunno

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Window_Advanced_Base movement and more
« Reply #13 on: July 05, 2009, 09:11:45 PM »
AdvBase would be a lot better. Remember, if somebody would have to read your code like this, he would get confused very quickly.
Laziness has nothing to do with it. It's not like you're going to type it every 20th line. You're gonna probably never type it except when creating a new class that is derivated from it. :P
« Last Edit: July 05, 2009, 09:12:57 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #14 on: July 05, 2009, 10:59:56 PM »
GG has a point, helps the lazy folk :rolleyes:

Oh, and very good job on this one Ryex, you kinda beat me to it. I'm gonna try this soon. *powers up*

Thank you Fant, this was really fairly easy once I discovered that you CAN NOT re-size a window unless self.contents is nil (disposing is not enough, you must set it to nil) if you try RGSS crashes with out an error.

now i just need to make Window_Advanced_Selectable
it will be a sub class of Window_Advanced_Base but it will have both vertical and horizontal ANIMATED scrolling and looping.
that's the main reason for both making a new class and naming it as I did though your right AdvBase and AdvSelectabl IS a lot shorter
« Last Edit: July 05, 2009, 11:04:17 PM by Ryexander »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Window_Advanced_Base movement and more
« Reply #15 on: July 05, 2009, 11:08:26 PM »
O_o I never had problems resizing it. Worst thing that would happen is that the arrows would appear because the window is smaller than the bitmap.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #16 on: July 06, 2009, 12:15:01 AM »
ok that is just weird, if self.contents is disposed but not set to nil RGSS crashes but if you just leave it alone your good. this discovery is annoying because it took half an hour to figure out why RGSS was crashing but it dose make Window_AdvSlectabul easyer.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Window_Advanced_Base movement and more
« Reply #17 on: July 06, 2009, 12:16:13 AM »
Oh that. Yeah, if you dispose it, better set it to nil as well. I just meant that don't even have to dispose it.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Window_Advanced_Base movement and more
« Reply #18 on: July 06, 2009, 12:25:31 AM »
Update to v1.02 resize will no longer depose of the windows contents but will call refresh once animation is complete, close however WILL dispose of the contents immediately

EDIT: Update to 1.03 speed now works with mode 0 AND mode 1 but in mode 1 it works differently, read the instruction to find out how
EDIT another update, the finalize is no longer defined in Window_AdvBase and must be created by the user. read the instructions to find out what you should put there. this is in an effort to help me creat Window_AdvSelectable, which by the way is in the works as I type.
« Last Edit: July 06, 2009, 02:38:13 AM by Ryexander »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Starrodkirby86

  • Kirby de Varita Estelar
  • Guardian of Chaos
  • ********
  • Posts: 3281
  • LV: 194
  • Gender: Male
  • ~!
    • View Profile
    • The Archive of Starrodkirby86
Re: [XP] Window_Advanced movement and more
« Reply #19 on: July 06, 2009, 05:33:01 AM »
Curses, I was going to suggest something about the ABase too, but Blizzard and I seem to be on the same wavelength. :P Yes, Advanced's abbreviation is usually Adv. . Having something like ABase can denote a lot of things. One thing I can easily think of a variable of a Base, like A-Base, B-Base, C-Base (Of course it's more commonly done as Base-A and etc.) or the simple indefinite article (A base was found at...). Definitely not Advanced though. ): But screw convenience if you have a high enough WPM. :V:

Anyway...I have thoughts that something like this can really make the Window effects much greater than before, but I really have no idea where to start. I suppose I would have to sit down and focus.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).