Game Development Community

TDN Platformer Tutorial - PlayerAnimation error

by David Bigerstaff · in Torque Game Builder · 01/06/2006 (7:39 pm) · 1 replies

In the tutorial it has this for the player animation datablock.

new t2dImageMapDatablock(playerImageMap)
{
   mode = "cell";
   cellWidth = 128;
   cellHeight = 128;
   inset = 5;
   textureName = "./images/player";
};

mode should be imageMode and textureName should be imageName, that works for me anyways.

Is it ok to just dive in and change these or is there some sort of other way to getting them changed?

I'm new here and quite unsure on the ways to go about things, but at least they're on the forums if somone runs a search.

#1
01/06/2006 (9:13 pm)
Definitely feel free to change errors. That's the spirit of a wiki.

For something like this that you are not sure about, depending on your level of certainty, you could either make the change and on the rare occasion that you're wrong, someone in the know will probably see it and change it back. Or, you could add a comment right on the page. I would envision something like this:
// shouldn't this be imageMode = "cell";
   mode = "cell";
That way people stumbling upon it in the future and getting errors will be able to see it. And, once again, someone who is more sure about it can make the permanent change. A final option is to add it to the article's talk page which can be accessed by clicking on 'discussion' in the upper right of the page (on the red title bar).

In this case, you are correct. imageMode and imageName are the new correct fields for the image map datablocks.