Board Thread:Plants vs. Zombies/@comment-4546491-20140414121735/@comment-9906728-20140414215205

I have modded that game since 3 years ago, i already know everything about the files the .reanim/xml and how to edit them, and yes I'm sorry i got confused (I read it that too fast i think), Heh my bad.

Here is a download for a program that can compile them. (And according to the creator you can also see their anims but its not working for me)

http://www.mediafire.com/download/bz1inxyk4nycboc/pvzUtil_1_0.rar

Okey, so in the Reanim/Particles folder there is a file for each character/effect/object for example "Blover.reanim", now make a backup of that file, and then open it with notepad++

Is recommend to have it in your desktop or in the main compiled folder, this will make everything easier

"Plant vs Zombies\compiled"

Now some simple things about the files

12 -- The speed of the character (Don't edit this because for some reason it always crashes, for me)

 -- This is a frame in where you can put the properties of the current image selected

Now lets get into something a little bit more complex

Blover_dirt_back -- This is the name of the anim and is starting point

37.465.30.8000.800IMAGE_REANIM_BLOVER_DIRT_BACK -- this is the main frame of this anim, most of them starts like this and the other things are how the image is setted up

Okey, I'm going to explain how it works,

37.4 -- This is the X coordinate/axis = Left and Right, Basically this tells the game in where it appears from right to left

65.3 -- This is the Y coordinate/axis = Up and Down, same like the other but from Up and down

Here is a image to explain this a little bit more

http://cdn.instructables.com/FK0/77AI/FR12319A/FK077AIFR12319A.MEDIUM.gif

Take in mind that if the both are setted to 0, the image will appear on the upper left corner

Lets continue.

0.800</sx> -- This is the wide of the image

0.800</sy> -- This is how tall the image will be

IMAGE_REANIM_BLOVER_DIRT_BACK -- And this is the image that will be modified by the properties (X,Y,SX,SY)

This is the frame again but modified to show you which part means what.

X Coordinate</x>Y Coordinate</y>Width of the image</sx>Height of the image</sy>IMAGE_TO_LOAD_FROM_REANIM_PARTICLES_FOLDER</t>

Anyways some other things to take in mind

All the images needs to be on upper case when you call/load them

When you are doing an animation the second frame will remember which image was called and it will edit that image, Example :

37.4</x>65.3</y>0.800</sx>0.800</sy>IMAGE_REANIM_BLOVER_DIRT_BACK</t> 37.5</x>65.2</y>0.788</sx><sy>0.821</sy></t>

You only have to load another image if you want to for example, make the character have another face while doing an anim or if you want to make a animation using "sprites" for example the fire peas (They use around 4 different images with custom properties)

If you need help with something else or if you didn't understand something just tell me and i will make another tutorial.