Using animations in a scene (unrelated to battles and maps)
#1
Heya! Okay, this is something I totally need help figuring out. Laughing Anyway, I've this new scene I've scripted, which is totally unrelated to maps and battles. I'm trying to figure out how to get it to play an animation from the database, I've no idea how to pull it off, so I was wondering if anyone could show me how. :p
Reply }
#2
So.... you are making an actual script that is to call a battle animation? Not a game map animation or battle animation?
Reply }
#3
Yes. :p
Reply }
#4
Well, this might differ a little depending on if you're using VX or XP, and the example I'm posting is XP so... yeah.

Basically, the way animations are handled and executed are through the RPG::Sprite class, a hidden class which you can actually access a copy of from the RM Help file. So, in order to play an animation in, for example, the window of a menu, you'll need an object within that menu which inherits from this class (RPG::Sprite).

If you're wanting it to display in a blank window, then I'd just make an inherited RPG::Sprite class that overlays the window in question (ie, the viewport must match the window's demensions.) Otherwise, if you're wanting to make a window which shows an actor/enemy which the animation would be executed on, create the desired Viewport and initialize a Sprite_Battler representing the actor/enemy within your scene.

Oh yeah, before I forget, if you're doing it with an actor/enemy, then you can call battler.animation_id = (animation_id), and when it updates it automatically plays the animation for you. Else, if you're doing it directly with the RPG::Sprite class, then your syntax will be sprite.animation(animation_id, hit_result).

Hope I've helped you some! You've got me curious and interested in seeing whatever you're working on :D

BTW, if you need any further help, you always know where to find me! I'll be glad to help you, and keep up the good scriptin's!
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }
#5
Holy freaking cow. Thanks a ton for the help, Kain. I got it to work. c:
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   BIG MAPS and Anti-Lag Mel 8 8,743 06-09-2020, 03:14 AM
Last Post: DerVVulfman
   using $scene during battles Keeroh 5 8,928 01-17-2018, 04:31 PM
Last Post: Keeroh
Sad  Equip bug (1-scene CMS) Whisper 2 5,535 01-23-2017, 09:20 AM
Last Post: Whisper
   A fourth column in MOG Scene Item Laura V1.2 Noctis 13 20,466 11-27-2016, 05:12 PM
Last Post: DerVVulfman
   Over 999 Animations? Is it possible/codeable? RASHIDA12 4 7,552 10-09-2016, 10:27 PM
Last Post: Mel
   RMXP SKill animations too bright (overlaying the battle screen) Starmage 4 10,196 06-13-2016, 03:41 AM
Last Post: Starmage
Bug Help with a Scene Equip Iqus 7 8,344 03-05-2014, 05:40 PM
Last Post: MechanicalPen
   Making Forest Maps with the Random Map Generator ShadowIce 16 22,135 02-02-2014, 08:18 PM
Last Post: ShadowIce
   Combat animations via scripting; How? ZeroSum 2 5,140 09-20-2013, 06:58 PM
Last Post: ZeroSum
   XP maps saved in RB files kyonides 1 6,069 05-02-2010, 04:43 AM
Last Post: vgvgf



Users browsing this thread: 1 Guest(s)