User blog:Coollittlepeashooter/TCLP's Level Making Tutorial - A Quick Explanation For the Coordinate System In PvZ2

From Plants vs. Zombies Wiki
Jump to navigation Jump to search

NOTE: This is not a tutorial for adding Tombstones or Sliders, it is only a quick explanation, I will cover the other things next week or so.



Ah, coordinates, we all face them at one point, whether in school or in video games. They serve an important purpose to us.


Now, take a look at this picture below:

CoordinatesTCLP.png





Now, those blue numbers are X coordinates, while the red ones are Y.

In the code, coordinates appear as "GridX or GridY"

Now, there are 2 situations in the OBB for these 2.


GridX$ or GridX! (Same for Y)

Now, what the hell does that mean? (I'll be using X for example)

Well, GridX$ are the values after 1

So, look at the picture again. GridX$. = 2 - 9 (01, 02, 03, 04, 05, 06, 07, 08 in Hex)

Meanwhile, GridX! is the value 1.

So, basically the "!" is there to tell you that "something" is going to appear in column/row 1 (The one closest to the house)


That's pretty much it. lol

Post questions in the description

Level making tutorials
Tutorials Extras