[Solved] Changing location of battle animations in scripts

Sarlecc

Veteran
Veteran
Joined
Sep 16, 2012
Messages
453
Reaction score
211
First Language
English
Primarily Uses
RMMV
So I have this enemy which has a graphic that covers pretty much the entire battle scene, Which in order to fit I had to lower it on the y axis (the troop setup made it so half of it wasn't showing which is why I had to lower it). This had the nice effect of having the enemy where I wanted it; however animations are shown at the original enemy location.

This brings me to my questions which script handles battle animation placement? Would it be Sprite_Base?

Also am I correct in my logic for changing the y location of the animations?:

(pretty certain I would have to do this by cell in a frame due to me not finding any y value stored for frames in the help).

if condition is met #in this case it will be the id of the troop i = 0 for i in frame.size t = 0 for t in frame.cell_max frame.cell_data[t, 2] + #amount I am going to lower it by t += 1 end i += 1 end end(Also I originally posted this question in the "Ruby questions that don't deserve their own thread" topic though I didn't receive an answer there so I thought it might be deserving it's own thread).

Edit: solved it by moving the sprite object instead of the doing it the above way (why I didn't think of doing that to begin with is beyond me :( )
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top