Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Using animations in a scene (unrelated to battles and maps)
#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 }


Messages In This Thread
[Resolved] Using animations in a scene (unrelated to battles and maps) - by Kain Nobel - 11-17-2009, 08:55 AM

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



Users browsing this thread: